I am moving my phpBB website from a shared server to a VPS.  phpBB sends
notifications to users that originate from [email protected], my email
account; and that account can be one
of those user recipients.  This is currently functioning on my shared
server, and I am attempting to set it up on my VPS.  I have installed
postfix for this purpose, but I am a postfix Newbie.

I will add that the MX records for [email protected] point to Google
Workspace mail servers, where my email is managed.

I did some testing from the command line using postfix sendmail, and got the
results further below.  I will also add that because my login is "mylogin",
I had to employ address rewriting as described here to map the FROM
"mylogin" to "dan":
https://serverfault.com/questions/147921/forcing-the-from-address-when-postf
ix-relays-over-smtp

When I execute:
mylogin@myvps:~$ sendmail -t < mail.txt

The email is delivered.  Here is the content of mail.txt:

To: [email protected] 
Subject: Greetings from myvps!
From: [email protected]
Hiya.
It's me.

Here is the mail log when I send from [email protected] to [email protected]:

Jul 11 13:04:15 myvps postfix/pickup[297634]: C915F60031: uid=1000
from=<mylogin>
Jul 11 13:04:15 myvps postfix/cleanup[300279]:
C915F60031:message-id=<[email protected]>
Jul 11 13:04:15 myvps postfix/qmgr[297635]: C915F60031:
from=<[email protected]>, size=364, nrcpt=1(queue active)
Jul 11 13:04:16 myvps postfix/smtp[300281]: C915F60031: replace: header
From: [email protected]: From: [email protected]
Jul 11 13:04:16 myvps postfix/smtp[300281]: C915F60031:
to=<[email protected]>, relay=smtp.gmail.com[209.85.144.108]:587,delay=2.2,
delays=1.2/0.02/0.44/0.51, dsn=2.0.0, status=sent (250 2.0.0 OK 1626023056
f1sm5367114qkh.75 - gsmtp)
Jul 11 13:04:16 myvps postfix/qmgr[297635]: C915F60031: removed

However, when the From/To are both [email protected], the email is *not*
delivered, and postfix repeatedly retries without success.  Here is the
content of mail2.txt which
produces this outcome:

To: [email protected]
Subject: Greetings from myvps!
From: [email protected]
Hiya.
It's me.

And here is the first failure from the mail log when I send from
[email protected] to [email protected]:

Jul 11 13:08:12 myvps postfix/local[300309]: D89F760060:to=<
[email protected]>, relay=local, delay=0.03,delays=0.01/0.01/0/0.01,
dsn=5.1.1, status=bounced (unknown user: "dan")
Jul 11 13:08:12 myvps postfix/cleanup[300308]:
DE7D360074:message-id=<[email protected]>
Jul 11 13:08:12 myvps postfix/bounce[300310]: D89F760060: sender
non-delivery notification: DE7D360074
Jul 11 13:08:12 myvps postfix/qmgr[297635]:
DE7D360074:from=<[email protected]>, size=29843, nrcpt=1 (queue active)
Jul 11 13:08:12 myvps postfix/qmgr[297635]: D89F760060: removed
Jul 11 13:08:12 myvps postfix/local[300309]:
DE7D360074:to=<[email protected]>, relay=local, delay=0.01,
delays=0.01/0/0/0, dsn=5.1.1, status=bounced (unknown user: "dan")
Jul 11 13:08:12 myvps postfix/cleanup[300308]: E141760060:message-id=<
[email protected]>
Jul 11 13:08:12 myvps postfix/bounce[300310]: DE7D360074: sender
non-delivery notification: E141760060
Jul 11 13:08:12 myvps postfix/qmgr[297635]: E141760060:
from=<[email protected]>, size=31795, nrcpt=1 (queue active)
Jul 11 13:08:12 myvps postfix/qmgr[297635]: DE7D360074: removed



I have seen this infinite loop problem described elsewhere, but because I am
a Newbie all proposed solutions read like stereo instructions to me.  Can I
get some help in understanding the problem, and what it will take to solve
it?

One other data point, if it matters:  the A record for domain mydomain.net
still resides with my existing shared server.  I won't be moving it to myvps
until I resolve all technical issues (there are others, besides phpBB being
able to email me).  I hope this does not confound the issue.

adTHANKSvance,
Dan

Reply via email to