Rejecting Unauthenticated mail from local domains

Hi,
My users connect to my mail gateway to relay their mails using SMTP AUTH. This is working fine.
Now, i want to make sure that when I see From: header containing my local domain and SMTP AUTH is not used, i want to reject the mail.
I am thinking the following line would do it if added to FROM_ACCESS section of my MAPPINGS on gateway. I want to be certain before I test this as I will have to test this during a downtime and my duration would be rather short. Please help.
FROM _ACCESS
*|SMTP|*|tcp_local|*+*@mydomain.co.in| $Y
*|SMTP|*|tcp_local|*|$2* $Y
*|SMTP|*|tcp_local|*+*@*|$2*@$4* $Y
*|SMTP|*|tcp_local|*|* $Y$K$3
Will this do the job? I am running 5.2sp2

Sorry..that was wrong...here it is..
FROM _ACCESS
*|SMTP|*|tcp_local|*+*@mydomain.co.in| $NLogin$ to$ send$ mail
*|SMTP|*|tcp_local|*|$2* $Y
*|SMTP|*|tcp_local|*+*@*|$2*@$4* $Y
*|SMTP|*|tcp_local|*|* $Y$K$3

Similar Messages

  • Can't receive mail from external domains (hotmail, gmail, etc)

    Hi,
    I have a new problem
    I can't receive external email. The receive connector that i have is the following:
    Default Frontend NAME.NL
    TlS, Basic verification, Basic after TLS, Intergrated, Exchange verification. groups: Exchange-server,
    exchange-user and anon
    This should be enough to receive external mail right? If I test it with gmail or hotmail I get the message: Mail delayed

    Hi,
    Is there any update?
    Thanks.
    Niko Cheng
    TechNet Community Support
    Sadly no.
    I still don receive any mail from certain domains. And gmail still has a +/- 24 hour delay. We now didn't receive some important mail for 1 and a half week. Any more idea's. I'm totally out of ideas 

  • How do I configure OS X Server (Mountain Lion) to deliver mail from another domain to my mailbox?

    How do I configure OS X Server (Mountain Lion) to deliver mail from another domain to my mailbox?
    I run a personal Server at my office. It's configured under my own domain as server.mydomain.com. It's setup that it properly receives and sends e-mail for mydomain.com. I use my own mailbox [email protected] to get all my personal mail.
    I'm looking to add another domain as a secondary way for people to get to my content and information.
    I want the same address [email protected] and [email protected] to arrive in the same mailbox at my server.
    How do i do that?

    it does look like you can add virtual domains in the GUI of Server.app on at least some versions, but I don't have an OS X Server 10.8 version handy to check.
    I'd encourage spending some time to learn the command line.  In general, the payoff for learning the command line will be worth the effort expended.  You're running a mail server here and sooner or later the capabilities of the GUI will fail you.  This whether due to a configuration omission in the GUI itself, or due to the need to troubleshoot a malfunctioning mail server, a need to automate one or more of the Postfix-related sequences, or some other IT-related task.  Entirely FWIW, of course.
    Here's a cut-and-paste of the sequence just used to test the command line access to the Postfix configuration, first fetching the current value, appending example.com as the second domain, then displaying the new value, then restarting the Postfix server.  Don't enter the dollar signs; just the postconf command and following.  Adjust example.com to match your domain...
    $ postconf mydestination
    mydestination = $myhostname, localhost.$mydomain, localhost
    $ sudo postconf -e 'mydestination = $myhostname, localhost.$mydomain, localhost, example.com'
    Password: {your admin password here}
    $ postconf mydestination
    mydestination = $myhostname, localhost.$mydomain, localhost, example.com
    $ sudo postfix reload
    The Postfix and Postconf commands work irrespective of the OS X Server version; the tools reference the data files as needed.

  • Can not receive mail from outside domains

    We are setting up our OCS 10g mail server, and are having trouble setting up our policies.
    -unsure how to allow mail to come in from outside domains
    -are able to send mail to outside domains if that one is set. is there a way to allow to send to any outside domain without having to set every single one?

    it looks like the MX records are setup correctly now, but I am still unable to receive mail from outside domains.
    from a gmail address i get the error:
    Delivery to the following recipient failed permanently:
    [email protected]
    Technical details of permanent failure:
    TEMP_FAILURE: Could not initiate SMTP conversation with any hosts:
    [mydomain.com. (10): Connection timed out]
    ----- Original message -----
    Received: by 10.70.123.6 with SMTP id v6mr2951750wxc;
    Thu, 29 Jun 2006 05:22:06 -0700 (PDT)
    Received: by 10.70.105.2 with HTTP; Thu, 29 Jun 2006 05:22:06 -0700 (PDT)
    Message-ID: <[email protected]>
    Date: Thu, 29 Jun 2006 09:22:06 -0300
    From: "Chris M" <[email protected]>
    To: [email protected]
    Subject: test thursday 1
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_Part_77974_24025125.1151583726769"
    ------=_Part_77974_24025125.1151583726769
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    Content-Disposition: inline
    test
    ------=_Part_77974_24025125.1151583726769
    Content-Type: text/html; charset=ISO-8859-1
    Content-Transfer-Encoding: 7bit
    ----- Message truncated -----
    ** i modified the email addressed for the post, actual email addresses were used **

  • Exchange 2007 rejecting e-mails from mailbox with a quote (') in the mailbox name.

    I have a HA Exchange 2007 Environment of 4 servers - two IS servers (primary/standby) and two Hub Transport servers (load balanced).  When I receive an e-mail from an e-mail address with a quote in the name, such as
    brian.o'[email protected], the email gets rejected with the error "550 Requested action not taken: mailbox unavailable(at FROM)".  Is there anything that I can do on my server to resolve this issue?
    telnet mail.domain.com 25
    Trying xxx.xxx.xxx.xxx...
    Connected to smtp.domain.com.
    Escape character is '^]'.
    220 mail.domain.com ESMTP (mx)
    ehlo me.com
    250-mx.domain.com Hello me.com [xxx.xxx.xxx.xxx], pleased to meet you
    250-PIPELINING
    250-AUTH LOGIN
    250-STARTTLS
    250 HELP
    mail from: brian.o'[email protected]
    250 Sender <brian.o'[email protected]> OK
    rcpt to: ***********@domain.com
    550 Requested action not taken: mailbox unavailable(at FROM)

    That transaction looks like you're sending to a non-Exchange server that is rejecting the quote character because that banner does not look like an Exchange response.  If so, that's a problem with that server, not yours.
    Consider removing the quote from your e-mail address.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Drop incoming mail from specific domain.

    Is this possible and if so how do I configure?
    I want to be able to drop incoming mail from, lets say, "@bigspammailer.com".  Is there a way to do this?  I have created an "Incoming Mail Policy" but don't know where to apply it.
    What I've tried that has not worked ....
    Incoming Content Filters, created a filter with Condition of "mail-from = = "@myemaildomain.com"$", and an action of "Drop".
    HAT Overview, creating a Sender Group using Mail Flow Policy "BLOCKED" setting SBRS to various settings including "None".
    I've grown exhausted reading through manuals. If you know of a document that directly addresses this issue (assuming it's possible) I'm not opposed to reading it.
    Any help will be greatly appreciated!
    Jim Mc.

    Sender Groups can be used to block messages based on the hostname or IP of the sending machine. It does not look at who the message is "from." To block mail based on the envelope sender you need to use a Filter or the Sender Verification Exception Table.
    Your example of a content filter seemed ok but after you create a filter you need to make sure that it is enabled for the incoming mail policy. Create your filter and then select Mail Policies -> Incoming Mail Policies. Under the column called Content Filters you will need to
    1) turn content filters on (default is off)
    2) enable the specific content filter that you just created
    You can also enter it in the Sender Verficiation Exception Table. You need to enable it under your ACCEPTED policy under Mail Policies -> Mail Flow Policies. There is a radio button all the way at the bottom for the exception table. Once you have it enabled then you can select Mail Policies -> Exception Table and add @domain.com to always reject.

  • Migrate existing users from local domains to Open Directory.

    Here is the environment I'm working with:
    Small local environment (8-10) users. Everyone is on their own laptop, everyone is authenticating to their local directories. Network files are stored on a server, with everyone using a single shared user ID to authenticate and access the files.
    I have just installed a Xserve, and it is now serving DNS, DHCP, NTP, WWW. I want to setup Open Directory in Master mode, create user IDs for everyone, and then assign permissions to the shared files area.
    The one part that I'm not sure how to approach is the local laptops. If user "John Doe" has a local ID "jdoe" that he has been using on his local laptop, how does he migrate over to being "jdoe" in the OD domain, while reatining his "local" home directory and files? The problem I think I'll have is that when I create "jdoe" on the domain, he will have a UID of (say) 10001, but his local UID is 501 (as is the UID of all the other employees since they are all the first user on each of their respective laptops.) so when he logs back into his laptop after it has been attached to the OD domain, I assume that the laptop will see "jdoe" from the OD domain as a new user and create a new home for him (with the UID:10001), so now John cannot see any of his old files and such.
    Also, as a side question: I've worked with Windows ID before, and I know once you join a windows computer to a domain and then login to it, it creates a new user and caches the authentication info, so that when the laptop is not connected to the corporate network, the user can still login and work. Does Open Directory do the same on the laptops?
    Thanks for any help.

    Retaining password is a manual process of asking the user what his or her password is and then creating it in OD.
    As for migration of account, it is rather simple, provided the short name of the user remains consistent across directory systems. For example, if you have a user named Joe User and his short name is juser with a home folder in /Users/juser. And you create the same account in OD. You can do these few short actions.
    1: Bind system to the domain
    2: From the Admin account, and using Terminal from root, navigate to /var/db/dslocal/nodes/Default/users and find the plist file for the user (in our example, juser.plist).
    3: Delete the file using rm
    4: Restart the machine or restart Open Directory
    5: Log in as the admin user and change ownership of the users home folder. Recall that when the user is in the local domain, the UID was likely 502, 503, etc (you do have a standard local admin at 501 right?) Now that the user is in OD, the UID will be 4 digits, something like 1027. So understanding that user attributes and user data are independent, you now have a folder in /Users titled juser and owned by uid 50x. You need to make it owned by juser from the OD domain. User this:
    sudo chown -R juser /Users/juser
    6: Log out of the admin account
    7: Log in as the user after choosing Other at login window.
    Assuming you have your OD account set up properly, you will likely be asked to confirm the caching of the users credentials. This will path you right back into the user's home folder and all will be right with the world.
    This is simple and quick. If the shortnames are different, throw an mv into the mix to rename the home folder to match the domain shortname. If you have no local admin, then you will need to reset DSLocal and start again.

  • TS3276 Hotmail rejects all mail from Apple Mail

    Hot mail reject any mail sent through applemail. If I send it through AOL mail it is works fine.
    This is the return thread
    Diagnostic-Code: smtp; 550 SC-001 (BAY0-MC4-F6) Unfortunately, messages from
       64.12.140.129 weren't sent. Please contact your Internet service provider
       since part of their network is on our block list. You can also refer your
       provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
    Any help

    Mail under Lion is 5.1
    I do not know of any upgrade since Lion.
    Please gieve us some more info about the message and your (yours wife sytem).
    You can try to look into the basket to see if the content of the Mail folder is there.
    Can you enter her Mail server (iCloud or MM or amithing different from Apple) and see if messages are There ?
    Probably you find some.
    What do you mean by "tag" in @me substituted (surry for my english).

  • Send connector - e-mails from two domains to distinct anti-spam IPs

    I have an Exchange enviroment that has two domains. I want that e-mails sent from a domain do the relay to an anti-spam, and e-mails sent from another domain do the relay to another anti-spam.
    Example:
    I need to config send connector to send the e-mails from "test1.com" to IP 10.160.190.66 and from "test2.com" to IP 10.160.190.69
    How do I do?
    I need this because each domain uses distincts anti-spam
    Tks.

    Hi,
    Before going on, I would like to confirm the following information.
    What's the version of the Exchange?
    Whether the two domains have their own Exchange or share one Exchange?
    Thanks
    Allen

  • Filter set to pass mail from legit domains?

    The address (I have many) I use with professional and social networking sites has fallen into the spam space. Using Apple Mail 5.2 I'd like it to consider all mail *not* from certain domains to be considered spam.
    In the filter Rules I see the qualifier "Sender is not in my Address Book"  but these legit domains send many e-mails and are often slightly different.  What is constant is the domain name (Facebook, Linkedin etc). Is there a way to tell Apple Mail that everything sent to a certain mailbox is Junk except mail for a handful of domains?
    Thanks in advance,
    Paul

    Try this rule:
    "If [All] of the following conditions are met" - "From" -  "Does Not Contain" - <the appropriate domain name> with one entry for each domain - "Move Message" to mailbox "Trash".
    Regards.

  • Sending mail from local host

    hi, i am running my application in tomcat.
    if i specify a smtp host server name , could able to send a mail in same domain without using authenticator.
    But i want to know without specifying a smtp server name, is it posstion to send email using "localhost" as the server.
    Properties props = new Properties();
    props.put("mail.transport.protocol", "smtps");
    props.put("mail.smtp.host", smtpHost);
    Session session = Session.getDefaultInstance( props);
    MimeMessage message = new MimeMessage( session );
    message.setFrom( new InternetAddress(aFromEmailAddr) );
    message.addRecipient(
    Message.RecipientType.TO, new InternetAddress(aToEmailAddr)
    message.setSubject( aSubject );
    Multipart multipart = new MimeMultipart();
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText(aBody);
    multipart.addBodyPart(messageBodyPart);
    MimeBodyPart attachmentBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(filePath);
    attachmentBodyPart.setDataHandler(new DataHandler(source));
    attachmentBodyPart.setFileName(fileName);
    multipart.addBodyPart(attachmentBodyPart);
    message.setContent(multipart);
    Transport.send( message );
    In my code if i mention a smtp server name in smtpHost , code is working fine, but i want to use localhost.
    so what will be the code for that??? should i have to configure anything.
    plz help.
    thnx in advance

    The code for sending mail from localhost is simply this:
    props.put("mail.smtp.host", "localhost"); But this will not work unless you have an SMTP server running on the same computer where that code is running. That's what "localhost" means. If you are trying to send e-mail without using a server which knows who you are, stop trying to do that. That makes you a spammer. Don't do it.

  • Server rejects outgoing mail from PC's but will send mail from Macs

    I am having a strange problem with outgoing mail all my mail clients are pointed to the server as smtp server. All mail from Macs are delivered without any problems but mail from PC's are universally rejected and I can't understand why. I did not have this problem with 10.4.11 and we do not authenticate. Here is the reject message:-
    +Your message did not reach some or all of the intended recipients.+
    +Subject: hello 16:34+
    +Sent: 26/08/2010 16:34+
    +The following recipient(s) cannot be reached:+
    +'user@cp-lighting..*' on 26/08/2010 16:34+
    +504 5.5.2 <PHILSPC>: Helo command rejected: need fully-qualified hostname+

    This should help:
    http://osx.topicdesk.com/content/view/145/84/
    Will work without authentication as long as your network range has been entered into the postfix settings.
    That said, you should require all your clients to authenticate to send through your server.
    HTH,
    Alex

  • Mail redirect rule only redirects mail from certain domain!!!

    Hi all,
    I set up a rule in Mail to redirect EVERY message to a certain email address (for backup/storage purposes) However it only redirects emails from email addresses with the same domain as my email (eg will redirect mydomainname.com but not otherdomainname.com
    Why is this??? Any ideas on how to fix it??? It is getting the mail from an Exchange server if that helps any...

    Thanks for the welcome!
    Ok so here are some screenshots...
    Here is the screenshot of the rule details
    Here is the main rules window
    And here is a screenshot showing how some are redirected and some are not (the ones that are redirected (and the one that shows the forward icon (it was forwarded before I set up the redirect rule)) are all from the same domain as my email account.
    Any ideas? Thanks!

  • Prime Infrastructure 1.4 e-mail from virtual domains

    Hi
    Is there any way in PI 1.4 to configure e-mail alerts to be sent to different recipients for different virtual domains.  We have several large sites, each with their own controllers and AP's (16 controllers & 4000+ AP's) and I'd like to be able to set things up so that the admin for each site gets any alerts for that site e-mailed only to them. The only way I can find to group the site devices is to put them in a virtual domain (subordinate to ROOT-DOMAIN) but e-mail recipients only seem to be configurable from ROOT ?
    So would have:
    Site A, controller A & AP's, alerts e-mailed to Admin_A
    Site B, Controller B & AP's, alerts e-mailed to Admin B etc.
    Thanks
    Alan

    This is exacly what I am trying to do as well Kilravock. We have a distributed management model where I would like to have the email alerts sent to the admins for each domain. 
    If someone knows how to perfom this I would love to hear how to do it because I can't find instructions in any of the Ciso documentation.
    Any insight would be apreciated!
    -Thanks in advance

  • IPhone 6 Mail App stops fetching mail from own domain ID

    The Mail App on iPhone 6 (with latest OS), seems to be fetching all my emails, including two other own domain IDs, except one.
    It fetches for a few days then stops. I have to delete the mail account, re-create it on the iPhone, it works fine for some days, then stops again.
    Has anyone else faced and solved this problem?

    Who is the email provider? Its the default email servers of DreamHost. I am using IMAP4.
    Also, the email works fine for a while, so I guess the settings must be OK. Then it STOPS fetching new mails, despite refreshing. But it continues to SEND.
    Yes the settings are verified. I have another own domain email ID from them which is working fine on the same iPhone.
    Here is the reply from my hosting provider:
    I'm very sorry to hear about this issue but unfortunately this is not
    something we can address. As you noted if you reset the account is works
    fine for a while. There are not changes we are making to our mail servers
    that could account for that.  I've tested the [email protected]
    account myself and confirmed that SMTP, IMAP and POP are all working
    fine.
    This points to the issue being with the the phone and/or IOS 7/8 and
    again that's not something we can help you with. I might suggest you
    contact Apple directly so that this can be addresses as a bug and handled
    on their end.
    I'm very sorry I'm not able to do much in this instance. If you need
    anything else or have any further questions please let me know."

Maybe you are looking for

  • Java.lang.Exception: Couldn't find a matching Java operation for WSDD

    Hi all, i used Eclipse to create a web service. actually i created a class with the following code:public class Add2Num {      public int Add2Numbers(int x,int y)           return x+y; }then i tried to generate wsdl file for this class, after i gener

  • Image not sharp in bridge

    I am really frustrated that my images look slightly blurred in bridge. Looks sharp when I open in photoshop, but whenever I see 100% preview in bridge, image is just not sharp!!! * I have purged all cache and did a full extraction * I have checked fu

  • HTTP-XI-RFC. INTERFACE_REGISTRATION_ERROR

    Dear All, HTTP<>XI<>RFC scenario is working fine with RFC connected to (Discovery system) Client.001 with role as "Integration Server" but when we try to connect RFC to Client.200 with role as "Application Server" we are getting the INTERFACE_REGISTR

  • Struts 1.2 and jdeveloper 9054

    Hi Gurus, Which version of xercesImpl.jar ,xalan.jar ,xml-apis.jar files support in jdeveloper useing with struts 1.2 . I am useing xercesImpl.jar (988kb),xalan.jar (3076 kb),xml-apis.jar (122 kb) below Exception I am getting, org.apache.commons.dige

  • How to 1-clik zero out brush sliders please?

    Develop>adjustment brush In that panel, there's a dozen sliders, and they can be all over the place from the last use.  In that panel: custom>restore default presets, nothing ever changes - those sliders never zero out.  Where is the one click zero o