Hi Stan, thanks a lot for your eMail und sorry for the inconvenience. Here is the hundred feet back down big picture: :-)
Postfix 2.5 on ubuntu 8.04.4. One physical interface with two public IPs. eth0 -> 10.0.0.1 -> needs relay (with auth) for abc.com, def.com, ghi.com to myIp.dyndns.org eth0 -> 10.0.0.2 -> needs relay (with auth) for * (all) to wp180.webpack.hosteurope.de (runs later on localhost only, therefore no open relay) I currently have: master.cf: smtp inet n - - - - smtpd <- uses main.cf if think 127.0.0.1:25 inet n - n - - smtpd -o content_filter=smtp:[wp180.webpack.hosteurope.de:25] -o smtp_sasl_auth_enable=yes -o smtp_sasl_password_maps=hash:/etc/postfix/sasl_gr_smarthost -o relayhost=wp180.webpack.hosteurope.de:25 main.cf: myhostname = mx0.mydomain.com myorigin = $myhostname mydestination = relay_domains = hash:/etc/postfix/transport relayhost = myIp.dnsalias.org transport_maps = hash:/etc/postfix/transport relay_recipient_maps = hash:/etc/postfix/valid_recipients virtual_alias_maps = hash:/etc/postfix/virtual_recipients ##postmap hash:/etc/postfix/... show_user_unknown_table_name = no mailbox_command = mailbox_size_limit = 0 inet_protocols = all inet_interfaces = 10.0.0.1 parent_domain_matches_subdomains = debug_peer_list, smtpd_access_maps smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination smtpd_sender_restrictions = reject_unknown_sender_domain unknown_address_reject_code = 554 Is this setup possible with postfix? Thanks a lot in advance! Thomas > On 9/25/2011 7:25 AM, Thomas Trepper wrote: >> Hi Wietse, >> >> I tried your solution with the content-filter option and I have the >> following in master.cf: >> >> 127.0.0.1:25 inet n - n - - smtpd >> -o content_filter=smtp:[wp180.webpack.hosteurope.de:25] > > No. I believe you need this, just as Wietse told you: > > 10.0.0.1:smtp inet n - - - - smtpd > -o content_filter=smtp:[wp180.webpack.hosteurope.de] > > Delete all of the other overrides you put in there and give it a go. > AIUI this creates a straight shot between mail arriving on 10.0.0.1 and > wp180.webpack.hosteurope.de, so you don't need, nor want, any other > overrides trying to muck this up. > >> and in this file (/etc/postfix/sasl_gr_smarthost) you see >> >> wp180.webpack.hosteurope.de<user> <password> > > Now you throw a previously unmentioned fly in the ointment... > > Until now you had not mentioned you need auth to connect to the > downstream hosts you're relaying to. This is a very odd setup. > > Maybe you should back up a few hundred feet and give us the big picture > of what exactly you're trying to accomplish here. > > -- > Stan >