Hello

I'm trying to achieve the following :

1. email arrives to [email protected] ,should be delivered locally to
account local
2. email arrives from [email protected] to [email protected]
(excluding '[email protected]') ,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

[email protected] local

***********************************************************************
/etc/postfix/sender_relay

[email protected]    [10.0.0.202]:52345

***********************************************************************

/etc/postfix/sasl_passwd

[email protected]    username:password

***********************************************************************

Is this setup possible ?

Sincerely

Dragan Zubac

Reply via email to