I have configured postfix and dovecot on my VPS server (Ubuntu). I want send copy of emails incoming from people to external e-mail address (private). I find topic about recipients_bcc_maps in postfix configuration (how to send a copy to another email address of all incoming messages from an email account?(postfix)) - I did it but it's not working.
Example:
[email protected] - address from some person
[email protected] - my email address on VPS
[email protected] - my private email address on other SMTP (gmail, op etc)
1 scenario:
sending email from [email protected] to [email protected] - it's working.
2 scenario:
sending email from [email protected] to [email protected] - email is delivered to [email protected], but not to [email protected]
/etc/postfix/recipient_bcc_maps
[email protected] [email protected]
I added line to /etc/postfix/main.cf
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps
/var/log/mail.log
scenario 1 (working)
Oct 25 12:40:57 domain postfix/smtp[726630]: E6EA017A1BF: to=<[email protected]>, relay=mx.poczta.onet.pl[213.180.147.146]:25, delay=1.4, delays=0.02/0.03/1.2/0.15, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4HdBLx1g0szyNk)
Oct 25 12:40:57 domain postfix/qmgr[726618]: E6EA017A1BF: removed
scenario 2 (not working)
Oct 25 12:43:53 domain postfix/smtp[726667]: 5F45617A1BF: to=<[email protected]>, relay=mx.poczta.onet.pl[213.180.147.146]:25, delay=0.32, delays=0.04/0.04/0.21/0.04, dsn=5.7.23, status=bounced (host mx.poczta.onet.pl[213.180.147.146] said: 550 5.7.23 <[email protected]>: Recipient address rejected: Message rejected due to: Receiver policy for SPF Softfail. Please see http://www.openspf.net/Why?s=mfrom;[email protected];ip=54.38.53.41;r=<UNKNOWN> (in reply to RCPT TO command))
Oct 25 12:43:53 domain postfix/cleanup[726663]: A6F4417A1C4: message-id=<[email protected]>
Oct 25 12:43:53 domain postfix/qmgr[726618]: 5F45617A1BF: removed
I don't understand why it's not working. In my logic everything is fine, because sending email from [email protected] to [email protected] works.
I changed domain and emails names to examples.