Why doesn't postfix use my smtp_generic_maps?
        Posted  
        
            by 
                RichardTheKiwi
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by RichardTheKiwi
        
        
        
        Published on 2012-12-07T16:59:27Z
        Indexed on 
            2012/12/07
            17:09 UTC
        
        
        Read the original article
        Hit count: 296
        
What have I set up incorrectly?
>postconf -n
....
smtp_generic_maps = regexp:/etc/postfix/rewrite
....
>cat /etc/postfix/rewrite
/.*/    [email protected]
>echo "test" | mail -s "test" [email protected]
>tail -f /var/log/mail.log
Dec  8 05:56:01 xxxxxxxxxxxx postfix/pickup[20227]: E9272709284: uid=501 from=<yyyy>
Dec  8 05:56:01 xxxxxxxxxxxx postfix/cleanup[20270]: E9272709284: message-id=<[email protected]>
Dec  8 05:56:01 xxxxxxxxxxxx postfix/qmgr[20228]: E9272709284: from=<[email protected]>, size=331, nrcpt=1 (queue active)
Dec  8 05:56:03 xxxxxxxxxxxx postfix/smtp[20272]: E9272709284: to=<[email protected]>, relay=mailinator.com[72.51.33.80]:25, delay=1.1, delays=0.02/0.01/0.48/0.58, dsn=2.0.0, status=sent (250 Ok)
FYI, I have reloaded postfix many times
sudo postfix reload
Note: This is on OSX 10.7.5
© Server Fault or respective owner