I have postfix running on my xubuntu 21.10 desktop machine and it's
working fine for sending mail from mutt which uses the 'sendmail'
interface.
However I have a script which attempts to send using localhost port 25
and that doesn't appear to work.
I am trying to debug it by connecting directly to port 25 on localhost
using telnet and composing mail that way. It appears to be sent
according to the postfix mail.log but it just disappears.
I.e., from mail.log, this message never arrives:-
May 16 16:57:23 esprimo postfix/smtpd[190440]: 865FE2C01D6:
client=localhost[127.0.0.1]
May 16 16:57:36 esprimo postfix/cleanup[190255]: 865FE2C01D6:
message-id=<[email protected]>
May 16 16:57:36 esprimo postfix/qmgr[1316]: 865FE2C01D6:
from=<[email protected]>, size=356, nrcpt=1 (queue active)
May 16 16:57:37 esprimo postfix/smtp[190560]: 865FE2C01D6:
to=<[email protected]>, relay=mail.gandi.net[217.70.178.9]:465, delay=24,
delays=23/0.01/0.57/0.36, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
3D57D1C0003)
May 16 16:57:37 esprimo postfix/qmgr[1316]: 865FE2C01D6: removed
May 16 16:58:08 esprimo postfix/smtpd[190440]: disconnect from
localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 unknown=0/1 commands=5/6
... but this one sent from mutt via postfix's sendmail arrives OK (you can see
it arriving):-
May 16 16:55:46 esprimo postfix/qmgr[1316]: 021532C0841:
from=<[email protected]>, size=425, nrcpt=1 (queue active)
May 16 16:55:46 esprimo postfix/smtp[190257]: 021532C0841:
to=<[email protected]>, relay=mail.gandi.net[217.70.178.9]:465, delay=0.54,
delays=0.01/0/0.18/0.35, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as
68B71240003)
May 16 16:55:46 esprimo postfix/qmgr[1316]: 021532C0841: removed
May 16 16:55:49 esprimo postfix/smtpd[190353]: connect from
p3plsmtp25-04-2.prod.phx3.secureserver.net[216.69.139.18]
May 16 16:55:50 esprimo postfix/smtpd[190353]: 2AEBF2C01EB:
client=p3plsmtp25-04-2.prod.phx3.secureserver.net[216.69.139.18]
May 16 16:55:50 esprimo postfix/cleanup[190255]: 2AEBF2C01EB:
message-id=<20210516155545.GC189386@esprimo>
May 16 16:55:50 esprimo postfix/qmgr[1316]: 2AEBF2C01EB:
from=<[email protected]>, size=2507, nrcpt=1
(queue active)
May 16 16:55:50 esprimo postfix/local[190332]: 2AEBF2C01EB:
to=<[email protected]>, relay=local, delay=0.49, delays=0.43/0/0/0.06, dsn=2.0.0,
status=sent (delivered to command: /home/chris/.mutt/bin/filter.py)
May 16 16:55:50 esprimo postfix/qmgr[1316]: 2AEBF2C01EB: removed
So what's the difference? I *guess* that something in between must be
rejecting the first
one for some reason.
--
Chris Green