Blocking email from all but a few specified servers

Hi,
I'm using OS X Server 10.6 with the email server. My users must be able to receive mail from hotmail, yahoo, and gmail, but in order for the mail server to accept emails from those domains, I have to turn the minimum junk mail score all the way up to around 35, which means that they also receive lots of junk email.
Is there a way that I can tell my email server to only accept mail from gmail.com, hotmail.com, yahoo.com, and of course our local domain? I know you can do this in MS Exchange.

No, there isn't a way.... There are many ways.
the real documentation is at http://www.postfix.org
If you know the IP address ranges that you want to allow, you can list them in a "whitelist" by network and add this in your smtpdrecipientrestrictions item. (those are really "client" restrictions, but adding them in the recipient ones makes for more obvious order of checking).
checkclientaccess cidr:/etc/postfix/goodclients
where goodclients has a cidr format such as:
218.66.0.0/15 REJECT
220.192.0.0/10 OK
Once you have edited the file, you created the "compiled" version with:
postmap cidr:/etc/postfix/goodclients
Another way to do this is whitelist based on the email the sender is pretending to use. For this, you use:
checksenderaccess hash:/etc/postfix/whitelist also in the smtpd_recipient)restrictions.
This file has format such as:
@hotmail.com OK
@yahoo.com OK
once you have built the text file, you also use postmap:
postmap hash:/etc/postfix/whitelist
(this creates a whitelist.db file)
For your own internal people, there is a permit_mynetworks line in the smtpd_recipient)restrictions which gives open permissions to people using clients in your corporate internal network.
http://www.postfix.org/postconf.5.html#smtpdrecipientrestrictions gives you a good feel for the types of checks you can include. (at the end of that section, there are links to the checks you can include in the recipient line but which apply to the :
smtpdclientrestrictions, (IP address)
smtpdhelorestrictions (name used in the HELO command)
smtpdsenderrestrictions (name used in the MAIL FROM: command)

Similar Messages

  • Spamcop blocks email from @tiscali.c​o.uk addresses to hpeprint.c​om

    Printing to [email protected]  works fine from @gmail.com and @hotmail.com addresses  but  Spamcop blocks email from @tiscali.co.uk addresses (TalkTalk webmail)    
    I am using HP Connected HP 8600 pro
    I get a delivery status notification failure in my inbox
    Header : 
    Delivery Status Notification (Failure)
    From:Mail Delivery System [[email protected]][add contact] 
    Contents : 
    The following message to <[email protected]> was undeliverable.
    The reason for the problem:
    5.1.0 - Unknown address error 554-'5.7.1 Service unavailable; Client host [62.24.202.76] blocked using bl.spamcop.net; Blocked - see h t t p :/  /www.spamcop.net/bl.shtml?62.24.202.76'
    I have tried 2 different @tiscali.co.uk addresses and get same error with each
    I have checked the phpeprint.com address and it is the same for all my all mail accounts
    Other than making all users have hotmail accounts, is there  a solution.
    Any advice please.
    Chris

    Printing to [email protected]  works fine from @gmail.com and @hotmail.com addresses  but  Spamcop blocks email from @tiscali.co.uk addresses (TalkTalk webmail)    
    I am using HP Connected HP 8600 pro
    I get a delivery status notification failure in my inbox
    Header : 
    Delivery Status Notification (Failure)
    From:Mail Delivery System [[email protected]][add contact] 
    Contents : 
    The following message to <[email protected]> was undeliverable.
    The reason for the problem:
    5.1.0 - Unknown address error 554-'5.7.1 Service unavailable; Client host [62.24.202.76] blocked using bl.spamcop.net; Blocked - see h t t p :/  /www.spamcop.net/bl.shtml?62.24.202.76'
    I have tried 2 different @tiscali.co.uk addresses and get same error with each
    I have checked the phpeprint.com address and it is the same for all my all mail accounts
    Other than making all users have hotmail accounts, is there  a solution.
    Any advice please.
    Chris

  • FiOS IPS server suspected of blocking emails from Constant Contact

    My homeowners assocation cannot get emails through to me at {edited for privacy}, but they do get emails through to my wife at {edited for privacy}. These emails are administered by Constant Contact, who suspect the FiOS servers of blocking emails to me. They suggest that I send you the following information:
    To: Verizon ISP Customer Support
    Subject: Remove Constant Contact Block
    Hello. My name is {edited for privacy} and I understand that you employ filters and/or blacklists to protect customers like myself from unsolicited email; however, this might have made it impossible for me to receive certain information that I have solicited. I value these communications and would like to receive them using my AOL email address.
    The sender of these emails uses an email marketing service called Constant Contact. Constant Contact is not an open relay and has strict anti-spam policies in place. Possibly because your filters block emails from Constant Contact I am unable to receive these communications.
    I ask that you please help me determine why these emails are being blocked. For further information about Constant Contact or to request more information from them such as log files, the Operations team can be reached at - {edited for privacy}.
    Mail from Constant Contact can be found by the following characteristics for whitelisting:
    "Envelope from:" domains:
    @in.constantcontact.com
    @in.confirmedcc.com
    Sending IPs:
    All mail from Constant Contact is sent from:
    IP Range: 208.75.123.0 - 208.75.123.255
    Please contact me when this problem has been resolved at {edited for privacy}.
    Sincerely, {edited for privacy}

    Hello tomfulks,
    This community is meant mainly for peer-to-peer support. If you need to provide information to a Verizon representative, you should contact customer service directly.

  • Hide a library object from all but selected users

    Perhaps I just missed this in the documentation, but is there a way to hide
    a library object from all but selected users who will have access to the
    docs in that library. I know I can uncheck access rights and assign them
    only for selected users who can access the documents, but I would like to
    hide the ibrary object as well, best that only those who have access even
    know the library exisits in this case. Thanks.

    PatM wrote:
    > Thanks to all for your comments and confirmation--I think this is worthy of
    > an enhancement request, and I will put one in. Anyone else who thinks it is
    > a good idea, your support is appreciated. In the case of a library for
    > something like the human resource or finance department, I think it is
    > pretty important, as one cannot rely on an individual user to set the rights
    > correctly for just those documents in the real world of the work-a-day rush.
    How do you give this support? This is a real issue with us as we
    generate information that affects the price and "tradeability" of public
    companies.
    If it's only moral support -- you got it.
    If you have to "vote" on these issues -- how?
    > "Dave Parkes" <[email protected]> wrote in message
    > news:[email protected]..
    >> If there is, I don't know of it. Removing all the rights is as far as you
    >> can go I think.
    >>
    >> I'd probably still just use document rights within a single library. If
    >> these people who can access this library don't have their default set to
    >> it, then things will end up in the wrong place anyway. Not a fan of
    >> multiple active libraries, docs are inevitably in the wrong one <g>
    >>
    >> Cheers Dave
    >>
    >>
    >> --
    >> Dave Parkes [NSCS]
    >> Occasionally resident at http://support-forums.novell.com/
    >
    >
    Will R
    PMC Consulting

  • Why Apple is blocking email from reaching my mac email account that I would like to receive.  How do I correct this?

    Apple is blocking email from reaching my mac email account that I would like to receive.  How do I correct this?  There are some important emails that I am not receiving because they never make it to my inbox or even my spam account.

    Hey there MikeMach,
    It sounds like people are sending you emails but they never arrive to your inbox or your Junk folder. According to the following article you may need to reach out to iCloud support directly for assistance:
    iCloud: Identifying and filtering junk mail
    Due to the complexity of accurately detecting and filtering out junk mail, on rare occasions a legitimate email from a friendly source may be blocked from reaching your Inbox. This is called a false positive.
    If you feel that a legitimate email message was inadvertently filtered, you may want to ask your friend to send a follow-up email to verify that the issue exists. If you notice that multiple email messages are being delayed, bounced, or not delivered, contact iCloud Support. Also make sure to check your Junk folder for email messages that were incorrectly marked as junk mail. To check your Junk folder at iCloud.com, choose the Mail application and click the Junk folder in the sidebar. Email messages in the Junk folder are automatically deleted after 30 days.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • ICloud is blocking emails from my website

    I work for a company that is similar to eBay in that we act as a venue for registered members to sell collectible LEGO items. I work behind the Help Desk and have received many similar complaints from iCloud (@me.com) email addresses. These users continue to complain that they are not receiving email notifications regarding invoices for orders. I called Apple but was on hold for so long, I had to get back to work and gave up.
    What I am wondering is if Apple is blocking emails from our website. I would really appreciate it if an Apple representative could contact me regarding this issue, as it is causing a lot of frustration with our community members. We have had to ask users to sign-up for Gmail accounts to receive correspondence, because we simply cannot come up with another solution. Is it possible that we are blacklisted? We did send out promotional emails over Christmas and I am worried we were blacklisted as SPAM senders. Please help me out here, it's not easy being behind the Help Desk when you are 100% sure the problem is not on your end and you can't do anything about it. Thanks!

    First try:
    http://support.apple.com/kb/TS5362
    OS X Mavericks v10.9.1: Repeated prompts to unlock "Local Items" keychain
    iOS 7 introduced syncing keychain iTunes (passwords) between devices included Mac computers
    If still problem see the other items of
    :https://discussions.apple.com/message/24739987#24739987

  • Block email from China

    How do I set up a rule to block emails from China? Better yey, how can I block emails that aren's in English?

    I haven't found any reliable way to block non-English emails with the included rules or junkmail filter. I turned to SpamSieve which has worked pretty well:
    http://c-command.com/spamsieve/
    It's not free but I think it's worth the price. You can download their trial version and test it out for yourself.
    Regards.
    Disclaimer: any product suggestion and link given is strictly for reference and represents my opinion only. No warranties express or implied. I get no personal benefit from the sale of any product I may recommend in any of my posts in the Communities. Your mileage may vary. Void where prohibited. You must be this tall to ride. Objects in mirror may be closer than they appear. Preservatives added to improve freshness. Contestants have been briefed on some questions before the show. No animals were harmed in the making of this post.

  • Can I delete email from all mail forever?

    Can I delete email from "all mail" forever?

    Hi there!
    Do the following
    message.setFlag(Flags.Flag.DELETED,true);
    folder.close(true);
    store.close();
    these 3 statements will delete email from the mail server.
    get back to me after u try this.
    ciao
    vivek

  • Lost email from all files.  How do I get it back?

    I "earased deleted messages & ended up losing email from all my files and accounts.  I het "rebuid" & don't know how to upload email from my various account.  What do I need to do?  I can't afford to lose all messages saved in files.

    Removing the icon from the Dock doesn't remove the application. Look in your Applications folder. You can drag the icon to the Dock if you want the option of opening it from there.

  • I received an email from apple, but in russian about iCloud any reason why?

    I recently received an email from apple, but written in russian about iCloud login any reason why?  I've occassionaly received emails written in russian. No idea.

    I was adding my osx mail to a new mac, and I logged into icloud in order to transfer contacts, etc.  The email appears legit, but in Russian.  Basically the email looks like a statement that i've logged on from a new device, but its written in cyrillic.  I just used google translate to understand it.  I deleted the message, and there was a link at the bottom, but obviously i didnt touch it.  Just strange and coincidental.  Not sure what to make of it.  It has happened before, but I always deleted them.

  • Have downloaded Yosemite and lost my outgoing mail settings in the process. I can still receive email from all my mail accounts but cannot send any...

    I have downloaded Yosemite but lost my outgoing mail settings in the process. I can still receive mail from all my accounts but cannot send any...

    Open mail
    click on mail  on top
    click preferences
    click accounts tab
    scroll down to TLS Certificate
    click up & down arrow and select  (com.apple.idms.appleid  )
    It worked for me

  • Authentication error when sending email from workflow but list alters email work fine

    I have a list. When a user enables alert on this list then he/she is able to receive email from SharePoint when someone adds a new item or change item.
    But emails sent by SharePoint workflow or Nintex workflow are not being sent. Error is:
    Error 530 5.7.1 Client was not authenticated
    Why emails are not being sent by workflows?
    EDIT
    And by SharePoint workflow, I mean OOB Publishing workflow.

    Hi Frank,
    For solving your issue , you can do as the followings:
    1. Check all the email addresses are valid and they are not blocked by your SMTP admin
    2. Check firewall settings if emails are blocking by any firewall or antivirus
    3. You need to also check SPLog file if anything log there
    4. Also create simple workflow with SharePoint Designer 2013, and give proper email to check whether it is working or not
    Here is a similar article for you to take a look at:
    http://techsuite.wordpress.com/2008/12/08/workflow-history-the-email-message-cannot-be-sent-make-sure-the-outgoing-email-settings-for-the-server-are-configured-properly/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Hotmail blocking emails from iMS5.2 relay server???

    Hi all, lately we have started experiencing problems sending emails from our iMS5.2 environment to hotmail.
    In our iMS5.2 environment, we have two mail relays/gateways. Today I tried manually sending emails to hotmail using telnet. I found that I was able to send an email from one gateway (gw2) but not the other (gw1). On the mail gateway that I can't send an email, gw1, using telnet, I get the following error:
    550 Your e-mail was rejected for policy reasons on this gateway. Reasons for rejection may be related to content such as obscene language, graphics, or spam-like characteristics (or) other reputation problems. For sender troubleshooting information, please go to http://postmaster.msn.com. Please note: if you are an end-user please contact your E-mail/Internet Service Provider for assistance.
    A search on Google reveals this blocking is quite common with hotmail.
    Emails sent to yahoo, gmail work fine.
    Am I right is thinking that hotmail is blocking emails that originate from iMS5.2 mail gateway gw1? And if so, what can be done to remedy the situation?
    Thanks in advance,
    Stewart

    This isn't so much a iMS5.2 question as a simple SMTP Host question. HotMail is likely blocking your site by IP address. You could change the IP address of the host, but this might be a symptom to a larger problem of abuse.
    My advice is to go through the mail.log files to identify when those emails were originally sent to Hotmail. It might reveal a potential problem which might be an internal spammer.

  • How can I print out CC invoices ? I receive a link in an email from Adobe but I am not allowed to view my invoices ???

    I receive a personal link in an email from Adobe telling me that my account has been charged, but I am not allowed to view my invoices ???

    Go to adobe.com. If you're not already logged in with your adobe id, log in. Under your name you should see a small button that says "manage account." Click it. Next select "Plans & Products." Under the Plans section, click "Manage Plan." On the new page, on the right is a "Billing History" section (it may take a second or to two to load to invoice info). Click the small print icon all the way to the right. You'll get a PDF form that you can download or print. Good luck.

  • I get emails from Amazon but the message window is blank

    JUst what i said above. I've gotten several emails from Amazon. It's always the same, the message window is always empty. Also When I'm emailing a buddy of mine and we are going back and forth using the same original email we always change color of the font with each reply. However after several exchanges I quit getting his newest response. The message comes back to me but doesn't have his last reply. To see it I have to go to Earthlink's Webmail to get the rest of the message.

    Why is the lower message window blank with Amazon. All other emails appear where they should.
    The second problem is that the replies do show until we reach about the 6 or 7th reply and then my end stops and I have to switch to Earthlink webmail to see it. My friend at the other end, using Outlook never has the problem, only at my end using Thunderbird.l

Maybe you are looking for

  • Power Mac G4 & OS 9 Problem...can use some help!

    I have a Power Mac G4 with an OS 9 operating system that is around ten years old. It has been reliable over the years until now. This morning, I started my G4 and everything was like any other day. The OS 9 window appeared and after the extensions fo

  • Thumbnail of pictures not showing up in album.

    So I just today cleaned up my Ipad2 to update IOS. Now that IOS7 is on, everything is crap. I hate the new update. Everything is so ugly to begin with and it's not at all as easier as it was. Second, when I go in my pictures, looking at the albums, t

  • Report - Numeric Format Change

    Dear Friends Based on UOM i want the Qty format should change for ex if UOM = PCS THEN QTY SHOULD BE ROUNDUP IF UOM = KGS THEN QTY SHOULD BE WITH 2 DECIMAL. Please suggest how to configure in Report. Sandy

  • AUC settlement through KO88

    Hi all, While doing KO88 i am getting the following error Account 5000021 in company code P001 cannot be directly posted to Message no. F5354 Diagnosis Account "5000021" in company code "P001" is marked as a reconciliation account for account type "A

  • Error while passing Exchange rates

    Hi We are trying to pass a IDOC to update the table TCURR for exchange rates. For one currency pair IDR to USD we have conversion factor as 10000 and when we try to pass with conversion rate as 1.12076, the IDOC fails with message "After comparing fa