ÉÚ ÓÔÁÔØÉ1. ÷ master.cf ÄÏÂÁ×ÉÔØ ÓÔÒÏËÕ:
redirect unix - n n - - pipe flags=R user=postfix argv=/etc/postfix/script ${sender} ${recipient}
2. ÷ /etc/postfix/script ÄÏÌÖÎÏ ÂÙÔØ:
#!/bin/bash
/usr/sbin/sendmail -f $1 $2
cat /etc/postfix/autoreply.msg | /bin/mail -s Notify $1
ðÒÁ×Á ÎÁ ÓËÒÉÐÔ - ÄÏÌÖÅÎ ÂÙÔØ ×ÙÐÏÌÎÑÅÍÙÍ ÄÌÑ postfix (ÉÌÉ ÌÀÂÏÇÏ ÀÚÅÒÁ
ÏÔ ÉÍÅÎÉ ËÏÔÏÒÏÇÏ × master.cf ÚÁÐÕÓËÁÅÔÓÑ ÓËÒÉÐÔ)
3. óÏÚÄÁÔØ ÆÁÊÌ /etc/postfix/autoreply.msg É ×ÐÉÓÁÔØ × ÎÅÇÏ ÔÅËÓÔ ÓÏÏÂÝÅÎÉÑ
4. äÏÂÁ×ÉÔØ × main.cf:
smtpd_recipient_restrictions = ÞÔÏ ÔÁÍ ÅÓÔØ, hash:/etc/postfix/recipient
5. óÏÚÄÁÔØ ÆÁÊÌÉË /etc/postfix/recipient ÔÁËÏÇÏ ×ÉÄÁ:
user1@mydomain.com FILTER redirect:
user2@mydomain.com FILTER redirect:
6. postmap recipient
7. postfix reload