Discussion:
Sent messages disappear and don't arrive. (Receiving is ok)
(too old to reply)
j***@gmail.com
2019-07-11 00:36:48 UTC
Permalink
Hi List,

I'm running an email server (Postfix, Dovecot, MySQL) on an RPi. I set it up using this 'howto' https://pestmeester.nl/index.html#11.0. It seemed to work but now sent emails just disappear and are not received. Inward emails are ok.

I'm a Linux and Postfix learner so please treat me as not being very knowledgeable.

I've tried to include what relevant info I thought a helper might need but if I've missed something please let me know.

I'll appreciate any help.

TIA,

John
John Hedge
2019-07-18 21:36:16 UTC
Permalink
Post by j***@gmail.com
Hi List,
I'm running an email server (Postfix, Dovecot, MySQL) on an RPi. I set it up using this 'howto' https://pestmeester.nl/index.html#11.0. It seemed to work but now sent emails just disappear and are not received. Inward emails are ok.
I'm a Linux and Postfix learner so please treat me as not being very knowledgeable.
I've tried to include what relevant info I thought a helper might need but if I've missed something please let me know.
I'll appreciate any help.
TIA,
John
Hi,
The Dovecot list have been helpful. They suggested looking at the mail.log while sending a test email. I did this with the following result:

Jul 19 07:12:12 RPi postfix/smtpd[6168]: connect from unknown[my ip address]
Jul 19 07:12:12 RPi postfix/smtpd[6168]: 7BBC52116D: client=unknown[my ip address], sasl_method=PLAIN, sasl_username=my user at my mail server
Jul 19 07:12:12 RPi postfix/cleanup[6217]: 7BBC52116D: message-id=<em1a129e09-526c-4a72-8215-***@pc>
Jul 19 07:12:12 RPi postfix/qmgr[1449]: 7BBC52116D: from=<my user at my mail server>, size=1519, nrcpt=1 (queue active)
Jul 19 07:12:12 RPi postfix/smtpd[6168]: disconnect from unknown[my ip address]
Jul 19 07:12:12 RPi postfix/smtp[6219]: 7BBC52116D: to=<***@gmail.com>, relay=none, delay=0.38, delays=0.33/0.05/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX : Host not found, try again)
Jul 19 07:12:13 RPi dovecot: imap-login: Login: user=<my user at my mail server>, method=PLAIN, rip=my ip address, lip=10.0.0.6, mpid=6223, TLS, session=<qLhIEPuNngDc6RzM>

Any help would be appreciated.

TIA,

John
Jonathan N. Little
2019-07-19 13:52:23 UTC
Permalink
Post by John Hedge
Post by j***@gmail.com
Hi List,
I'm running an email server (Postfix, Dovecot, MySQL) on an RPi. I set it up using this 'howto' https://pestmeester.nl/index.html#11.0. It seemed to work but now sent emails just disappear and are not received. Inward emails are ok.
I'm a Linux and Postfix learner so please treat me as not being very knowledgeable.
I've tried to include what relevant info I thought a helper might need but if I've missed something please let me know.
I'll appreciate any help.
TIA,
John
Hi,
Jul 19 07:12:12 RPi postfix/smtpd[6168]: connect from unknown[my ip address]
Jul 19 07:12:12 RPi postfix/smtpd[6168]: 7BBC52116D: client=unknown[my ip address], sasl_method=PLAIN, sasl_username=my user at my mail server
Jul 19 07:12:12 RPi postfix/qmgr[1449]: 7BBC52116D: from=<my user at my mail server>, size=1519, nrcpt=1 (queue active)
Jul 19 07:12:12 RPi postfix/smtpd[6168]: disconnect from unknown[my ip address]
Maybe I can point you in a helpful direction. Comparing your output to
mine which works sending to a gmail address from my server there is a
difference at this point.

Jul 19 08:56:41 lws-u1604 postfix/smtp[766]: 020F75FDB0:
to=<***@gmail.com>,
relay=gmail-smtp-in.l.google.com[173.194.207.27]:25, delay=0.65,
delays=0.08/0.01/0.25/0.31, dsn=2.0.0, status=sent (250 2.0.0 OK
1563541001 v17si15840219qtj.134 - gsmtp)

1) Note that your parameter 'relay' in the log is 'none' but mine points
a google server

2) your 'dsn=4.4.3' whereas mine is 'dsn=2.0.0'

3) your 'status=deferred (Host or domain name not found. Name service
error for name=gmail.com type=MX: Host not found, try again)' whereas
mine 'status=sent (250 2.0.0 OK ...)'

It looks like your server is having a dns issue, where lookups are
failing. Googling "dsn=4.4.3" appears to confirm this.

One issue that can arise is if your postfix in installed chroot or not
but not correctly configured to match this. The default config did
change from 'no' to 'yes' so depending on how old the tutorial was that
you referenced this might be your issue. Mine is installed on a Ubuntu
server is set for chroot:

~$ grep -m 1 '^smtp' /etc/postfix/master.cf
smtp inet n - y - - smtpd
^^^

If you read <http://www.postfix.org/DEBUG_README.html#no_chroot>

It suggests testing by changing the value to 'n' and see if that solves
your problem. Then you can refer to

<http://www.postfix.org/BASIC_CONFIGURATION_README.html#chroot_setup>

and decide whether or not you want to chroot.
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
John Hedge
2019-07-19 23:57:45 UTC
Permalink
Post by j***@gmail.com
Hi List,
I'm running an email server (Postfix, Dovecot, MySQL) on an RPi. I set it up using this 'howto' https://pestmeester.nl/index.html#11.0. It seemed to work but now sent emails just disappear and are not received. Inward emails are ok.
I'm a Linux and Postfix learner so please treat me as not being very knowledgeable.
I've tried to include what relevant info I thought a helper might need but if I've missed something please let me know.
I'll appreciate any help.
TIA,
John
Thanks Jonathan for your response.
I ran your suggested command. I'm baffled! Neither a 'y' or 'n':
smtp inet n - - - - smtpd -o content_filter=spamassassin
John
Jonathan N. Little
2019-07-22 03:45:27 UTC
Permalink
Post by John Hedge
Thanks Jonathan for your response.
smtp inet n - - - - smtpd
^
|
You have a "-" here meaning "default" and with new versions of postfix
the default is "y" meaning yes for chroot. You need to explicitly set to
"n". The line should look like so:

smtp inet n - n - - smtpd
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
John Hedge
2019-07-22 04:21:28 UTC
Permalink
Post by j***@gmail.com
Hi List,
I'm running an email server (Postfix, Dovecot, MySQL) on an RPi. I set it up using this 'howto' https://pestmeester.nl/index.html#11.0. It seemed to work but now sent emails just disappear and are not received. Inward emails are ok.
I'm a Linux and Postfix learner so please treat me as not being very knowledgeable.
I've tried to include what relevant info I thought a helper might need but if I've missed something please let me know.
I'll appreciate any help.
TIA,
John
Jonathan you're a miracle worker. (I have a rhetorical question; why do they change things like this and then not broadcast it?)
Thank you, thank you.
John
Jonathan N. Little
2019-07-22 10:54:53 UTC
Permalink
Post by John Hedge
Post by j***@gmail.com
Hi List,
I'm running an email server (Postfix, Dovecot, MySQL) on an RPi. I set it up using this 'howto' https://pestmeester.nl/index.html#11.0. It seemed to work but now sent emails just disappear and are not received. Inward emails are ok.
I'm a Linux and Postfix learner so please treat me as not being very knowledgeable.
I've tried to include what relevant info I thought a helper might need but if I've missed something please let me know.
I'll appreciate any help.
TIA,
John
Jonathan you're a miracle worker. (I have a rhetorical question; why do they change things like this and then not broadcast it?)
Thank you, thank you.
John
They do document it, in the release notes about upgrading. Also best
place to get up to date info is

<http://www.postfix.org/documentation.html>

You have to be careful that the tutorial you reference matches somewhat
closely to the version you are setting up.
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Continue reading on narkive:
Loading...