Hello I'm trying to achieve the following :
1. email arrives to lo...@domain.com ,should be delivered locally to account local 2. email arrives from anyth...@anything.com to anyth...@domain.com (excluding 'lo...@domain.com') ,the email should be forwarded to remote smtp ([10.0.0.202]:52345) using user/pass from sasl_passwd file Config files are : /etc/postfix/main.cf myhostname = mail2.routo-messaging.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = domain.com,localhost relayhost = mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all virtual_alias_maps = hash:/etc/postfix/virtual smtp_sender_dependent_authentication = yes sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd *********************************************************************** /etc/postfix/virtual lo...@domain.com local *********************************************************************** /etc/postfix/sender_relay anyth...@anything.com [10.0.0.202]:52345 *********************************************************************** /etc/postfix/sasl_passwd anyth...@anything.com username:password *********************************************************************** Is this setup possible ? Sincerely Dragan Zubac