Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My company is using Oempro to send out some emails to our clients. It looks like when we try to send emails to a large number of people, Oempro sets Mail From to be something like: bounce-[some number here] I believe that that number is based on the mailing list that we are sending our emails to. This allows Oempro to see which emails in which list are not valid.

The problem is that my postfix looks to verify that the sender actually has a mail account. I've checked some files and config but I am really confused. Is there someway to add a regular expression that tells postfix to allow things like bounce* to go through? I looked at the /etc/postfix/access file but didn't really understand how to use it with regular expressions. Is this where I should be looking? Thanks!

share|improve this question
up vote 2 down vote accepted

From the Postfix documentation, it appears you need to modify this section in your file:

    smtpd_sender_restrictions = 
        check_sender_access hash:/etc/postfix/sender_access
        warn_if_reject reject_unverified_sender 
    # Postfix 2.6 and later.
    # unverified_sender_reject_reason = Address verification failed

    # Default setting for Postfix 2.7 and later.
    # Note 1: Be sure to read the "Caching" section below!
    # Note 2: Avoid hash files here. Use btree instead.
    address_verify_map = btree:/var/lib/postfix/verify

This will put warning messages in your logs when a sender fails verification, but it won't reject it. You can remove the warn_if_reject line if you don't want to pollute your log files.


If you want regular expressions, you'll need to compile PCRE support into Postfix (if it's not there already):

Then, you can simply replace the line check_sender_access hash:/etc/postfix/sender_access with: check_sender_access pcre:/etc/postfix/sender_access and it will check for regex's in that file. If you're using Debian/Ubuntu, there's a package called postfix-pcre that will install support for PCRE.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.