Score:0

Sending emails is correct, but sending copy to recipient not work - postfix

it flag
Bob

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:

external@gmail.com - address from some person

my_email@domain.com - my email address on VPS

private_external@op.pl - my private email address on other SMTP (gmail, op etc)

1 scenario: sending email from my_email@mydomain.com to private_external@op.pl - it's working.

2 scenario: sending email from external@gmail.com to my_email@mydomain.com - email is delivered to my_email@domain.com, but not to private_external@gmail.com

/etc/postfix/recipient_bcc_maps

my_email@domain.com  private_external@gmail.com

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=<private_external@op.pl>, 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=<private_external@op.pl>, 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 <private_external@op.pl>: Recipient address rejected: Message rejected due to: Receiver policy for SPF Softfail. Please see http://www.openspf.net/Why?s=mfrom;id=and1rew1@gmail.com;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=<20211025104353.A6F4417A1C4@domain.eu>
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 my_email@domain.com to private_external@op.pl works.

I changed domain and emails names to examples.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.