Double emails to mailbox aliases

2009-10-01
2013-01-23
  • Dan Schaefer
    Dan Schaefer
    2009-10-01

    Postfix Admin version: 2.2.1.1<br/>
    Email address:  mailbox@example.com<br/>
    Aliases: alias1@example.com<br/>
    alias2@example.com<br/>
    alias3@example.com<br/>

    What I want to accomplish is any email being sent to
    mailbox@example.com to be put into the mailbox@example.com's Inbox and 1 copy to be sent to the 3 aliases. I'm using PostfixAdmin for MySQL and this is what I have in the To: field for mailbox@example.com

    mailbox@example.com<br/>
    alias1@example.com<br/>
    alias2@example.com<br/>
    alias3@example.com

    I do get an email in mailbox@example.com's Inbox, but all 3 aliases
    receive duplicate messages. Do you have any suggestions? Do I need to give more information? If you need it, I can give you the contents of the database field as well.

     
  • Dan Schaefer
    Dan Schaefer
    2009-10-01

    Here's the log from my maillog:
    http://pastebin.com/m2fc25bea

    I noticed that there are two lines for my alias (dan_at_performanceadmin.com) which are slightly different and one for my mailbox (monitor_at_performanceadmin.com)

     
  • GingerDog
    GingerDog
    2009-10-01

    you need to suppress alias_mappings in more places. Where to do this will depend a lot on what you have in your master.cf file…

    As an example :

       SMTP Listeners:

        127.0.0.1:smtp              inet  n       -       -       -       40       smtpd
        -o content_filter=amavis::10024
            -o receive_override_options=no_address_mappings
        192.168.2.66:smtp              inet  n       -       -       -       40       smtpd
        -o content_filter=amavis::10024
            -o receive_override_options=no_address_mappings
        192.168.2.66:2525              inet  n       -       -       -       40       smtpd
        -o content_filter=amavis::10024
            -o receive_override_options=no_address_mappings
        192.168.2.166:smtp inet n       -       -       -       5       smtpd
            -o receive_override_options=no_address_mappings
            -o content_filter=custom_filter:

    Coming back in from Amavis:

        127.0.0.1:10025   inet  n       -       -       -       -       smtpd
              -o smtpd_authorized_xforward_hosts=127.0.0.0/8
              -o smtpd_client_restrictions=
              -o smtpd_helo_restrictions=
              -o smtpd_sender_restrictions=
              -o smtpd_recipient_restrictions=permit_mynetworks,reject
              -o mynetworks=127.0.0.0/8
              -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks

     
  • GingerDog
    GingerDog
    2009-10-01

    ick, sorry… I meant address_mappings - not alias_mappings (whatever they might be)

     
  • Dan Schaefer
    Dan Schaefer
    2009-10-01

    Thank you very much!! That did the trick.  Perhaps you could change the topic name to reflect "SOLVED" to help others out.