I have 2 servers (A,B) with email server working. I am trying to replicate all emails sent to server A to server B using transport map. My transport table is
When I add row to that table to transport emails to server B it works
but when I try to add another server it stops working
My question is, how to get it working? How can I get mails on two different servers replicated?
Aug 22, 2016 H ow do I configure Postfix MTA to send eMail using an external cloud-based SMTP server (with username: password) from a web server on Linux or Unix-like system? How do I configure an Ubuntu server and postfix as the relay server (smarthost)? You can configuring Postfix MTA to use as a Smarthost i.e. Routing all mails to a smarthost.
debianek
debianekdebianek
1 Answer
Transport maps don't support multiple nexthops. You can try using auto_bcc (or one of the BCC maps) to deliver mail to additional addresses.
For example, to deliver all mail destined for example.com to server B, create a domain for the 'backup' mail (e.g. backup.example.com) and configure server B to accept mail for this domain. Then use a regular expression recipient_bcc_maps table which adds the counterpart user on backup.example.com as a BCC.
main.cf :
recipient_bcc_maps :
mgorvenmgorven
Not the answer you're looking for? Browse other questions tagged emailpostfix or ask your own question.
I am trying to create a blackhole account in Postfix and did the following which seems to be the most commonly employed method of doing this in Postfix:
1) Created a user (I named the user
blackhole ) with /dev/null as the user's home directory.
useradd blackhole -d /dev/null
2) Made an entry in
/etc/postfix/virtual to direct all the emails sent to blackhole@<subdomain.myhostname.com> to blackhole user's mailbox, which by default is /home/<user/Maildir/new :
Then, updated postfix database and reloaded the service with the following commands:
While this is working as expected, that is, emails sent to
blackhole@<subdomain.myhostname.com> vanishes without sending a bounce message to the sender, I see the following in the maillog which gives out the impression that this method is an easy, crude method to create a blackhole account and makes me wonder whether there is a correct and legal way to do this in Postfix.
Jan 17 09:21:20 plmercury01 postfix/local[17760]: DBC8F16197F: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.19, delays=0.09/0/0/0.1, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /dev/null/Maildir/tmp/1484666479.P17760.plmercury01.myhostname.com: Not a directory)
My question:
1) Is this the legal way to create a blackhole account in Postfix and not a short-cut?
2) Can I ignore what I see the in the maillogs complaining about
/dev/null ?
SreeSree
1 Answer
You don't need to create a 'blackhole' account - just have a transport map entry like :
David GoodwinDavid Goodwin
Not the answer you're looking for? Browse other questions tagged postfix or ask your own question.Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |