To create a test email server, I have a similar requirement as:
But I need to send all the emails to an external account, not a local one.
I would like to do something like:
- xyz:email@gmail.com
but xyz is not local nor smtp.
|
To create a test email server, I have a similar requirement as: But I need to send all the emails to an external account, not a local one. I would like to do something like:
but xyz is not local nor smtp. | |||
|
feedback
|
|
Create
Edit
Build the mapfile by typing:
This also requires a virtual.db to exist. If it doesn't create an empty file called virtual and run : postmap /etc/postfix/virtual Voila! | ||||
|
feedback
|
|
Is it acceptable to just have it go to a local account that then forward all mail to your external address? You could get it running like the other question you mentioned, and then use procmail to have the messages forwarded and then deleted locally. Something like this would probably do the trick by replacing the folder with /dev/null. | |||
|
feedback
|