PDA

View Full Version : sending mail to two address with postfix


paulley
3rd July 2006, 22:33
hi all

i am trying to relay mail from a domain to 2 address eg:

user@example.com >> local user (user) and otheruser@otherdomain.com

config so far:-

/etc/postfix/virtusertable

user@example.com user ( which works fine)

/etc/postfix/virtual

user@example.com otheruser@otherdomain.com (which works fine but disables the virtusertable content

i want it to go to both the local user and the other email address.

any help will be great

thanks

falko
4th July 2006, 00:34
Create a .forward file in the user's homedir which looks like this:

"|/usr/bin/procmail -f-", otheruser@otherdomain.com
Then run
chmod 600 /path/to/.forward
chown username:group /path/to/.forward