P
P
pashich2013-11-24 16:46:31
postfix
pashich, 2013-11-24 16:46:31

Postfix forward all incoming mail to another mailbox

Good time. I have configured postfix for distribution. There is a need to forward all incoming mail to a box on another mail server.
Let me explain: the nashdomen.ru domain is configured for mailing; various options can be used as outgoing addresses, for example:
[email protected]
[email protected]
[email protected]
, etc.
It is necessary to make sure that all incoming letters to the addresses
[email protected]
[email protected]
[email protected]
, etc.
Forwarded to the address [email protected]
Google offered several options, I summarized and got this

В файл main.cf 
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc 
 
В файл recipient_bcc 
 
*@nashdomen.ru [email protected] 
 
 
поле чего  
postmap /etc/postfix/recipient_bcc 
postfix reload

Please verify the correctness of the solution. Since the server is combat, and I'm not entirely sure of the correctness of the solution, I don't really want to experiment.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Evseev, 2013-11-26
@IlyaEvseev

"*" before "@" is not needed.
It is written in http://www.postfix.org/postconf.5.html#recipient_bcc_maps .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question