Dragan Zubac:
> Hello
>
> I'm trying to achieve the following :
>
> 1. email arrives to [email protected] ,should be delivered locally to
> account local
/etc/postfix/main.cf:
virtual_alias_maps = hash:/etc/postfix/virtual
# DO NOT LIST domain.com IN VIRTUAL_ALIAS_DOMAINS
# DO NOT LIST domain.com IN VIRTUAL_MAILBOX_DOMAINS
# DO NOT LIST domain.com IN MYDESTINATION
mydestination = $myhostname localhost.$mydomain localhost ...
/etc/postfix/virtual:
[email protected] local@localhost
> 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
/etc/postfix/main.cf:
relayhost = [10.0.0.202]:52345
Wietse