[opensuse] Fetchmail is bouncing email back
Hi, Something very weird is happening in this tiny laptop of mine: fetchmail gets email, sends it to postfix, and this is bouncing it back to opensuse! Or trying, port 25 is blocked. Some small blessing.
<2.6> 2018-09-22 23:00:00 Legolas postfix 19588 - - 00E06E377B: message-id=<20180806130929.571E5FD35@maintenance.suse.de> <2.6> 2018-09-22 23:00:00 Legolas postfix 1828 - - 00E06E377B: from=
, size=8904, nrcpt=1 (queue active)
<2.5> 2018-09-22 23:00:00 Legolas amavis 19654 - - (19654-13) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [::1]:41220 [185.85.248.29]
-> , Queue-ID: C51F7E36FD, Message-ID: , mail_id: K83q0VNRV0SH, Hits: -, size: 8928, queued_as: 2ABA3E377C, 194 ms
<2.6> 2018-09-22 23:00:00 Legolas postfix 19589 - - C51F7E36FD: to=
, relay=127.0.0.1[127.0.0.1]:10024, delay=36, delays=0.18/31/5/0.19, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2ABA3E377C) <2.6> 2018-09-22 23:00:00 Legolas postfix 1828 - - C51F7E36FD: removed <2.6> 2018-09-22 23:00:00 Legolas postfix 19614 - - 2ABA3E377C: to= , relay=none, delay=0.04, delays=0.01/0/0.03/0, dsn=5.4.6, status=bounced (mail for localhost loops back to myself)
status=bounced (mail for localhost loops back to myself) WTF?
<2.6> 2018-09-22 23:00:00 Legolas postfix 19598 - - 34CD8E377D: message-id=<20180922210000.34CD8E377D@Legolas.valinor> <2.6> 2018-09-22 23:00:00 Legolas postfix 19659 - - 2ABA3E377C: sender non-delivery notification: 34CD8E377D <2.6> 2018-09-22 23:00:00 Legolas postfix 1828 - - 34CD8E377D: from=<>, size=11366, nrcpt=1 (queue active) <2.6> 2018-09-22 23:00:00 Legolas postfix 1828 - - 2ABA3E377C: removed
I killed fetchmail, but I'm so bewildered that I do not know where to look. This setup was basically copied from another computer where it was working perfectly, but obviously I must have changed or omitted something important. Now postfix is attempting to bounce back some 232 mails. :-/ Yeah, I'm not giving precise info, but I do not know this instant what is important, where to look... I tried to send a local email to "cer" and it is passed properly all the chain to procmail and stored in the correct folder.
<2.6> 2018-09-22 23:29:23 Legolas postfix 20836 - - 9C2B0E3829: uid=1000 from=<cer> <2.6> 2018-09-22 23:29:23 Legolas postfix 21200 - - 9C2B0E3829: message-id=<20180922212923.9C2B0E3829@Legolas.valinor> <2.6> 2018-09-22 23:29:23 Legolas postfix 1828 - - 9C2B0E3829: from=
, size=431, nrcpt=1 (queue active) <2.6> 2018-09-22 23:29:23 Legolas postfix 21205 - - connect from localhost[127.0.0.1] <2.6> 2018-09-22 23:29:23 Legolas postfix 21205 - - EBC04E3819: client=localhost[127.0.0.1] <2.6> 2018-09-22 23:29:23 Legolas postfix 21200 - - EBC04E3819: message-id=<20180922212923.9C2B0E3829@Legolas.valinor> <2.6> 2018-09-22 23:29:23 Legolas postfix 1828 - - EBC04E3819: from= , size=860, nrcpt=1 (queue active) <2.6> 2018-09-22 23:29:23 Legolas postfix 21205 - - disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 <2.5> 2018-09-22 23:29:23 Legolas amavis 19960 - - (19960-17) Passed CLEAN {RelayedInbound}, [127.0.0.1] -> , Message-ID: <20180922212923.9C2B0E3829@legolas.valinor>, mail_id: Ez91_NPIWMgY, Hits: -, size: 431, queued_as: EBC04E3819, 242 ms <2.6> 2018-09-22 23:29:23 Legolas postfix 21202 - - 9C2B0E3829: to= , orig_to=<cer>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.37, delays=0.04/0.09/0.01/0.24, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as EBC04E3819) <2.6> 2018-09-22 23:29:23 Legolas postfix 1828 - - 9C2B0E3829: removed <2.6> 2018-09-22 23:29:24 Legolas postfix 21206 - - EBC04E3819: to= , relay=local, delay=0.09, delays=0.01/0.03/0/0.05, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail) <2.6> 2018-09-22 23:29:24 Legolas postfix 1828 - - EBC04E3819: removed
.fethcmailrc:
set syslog set no spambounce
poll imap.gmail.com with interval 0 proto imap timeout 50, and tracepolls user AAAAAA, with password "BBBB", is cer here, expunge 20, and ssl, and fetchall
Maybe there is a problem in master.cf? At the exit from amavis? I'll attach it, thunderbird wraps the lines. But amavis is responding at the port 10024, and postfix ad 10025, as they should: cer@Legolas:~> telnet 127.0.0.1 10025 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 Legolas.valinor ESMTP ehlo localhost 250-Legolas.valinor 250-PIPELINING 250-SIZE 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250 SMTPUTF8 quit 221 2.0.0 Bye Connection closed by foreign host. cer@Legolas:~> telnet 127.0.0.1 10024 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 [127.0.0.1] ESMTP amavisd-new service ready ehlo localhost 250-[127.0.0.1] 250-VRFY 250-PIPELINING 250-SIZE 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-SMTPUTF8 250-DSN 250 XFORWARD NAME ADDR PORT PROTO HELO IDENT SOURCE quit 221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel Connection closed by foreign host. cer@Legolas:~> (done (years ago) according to instructions at /usr/share/doc/packages/amavisd-new-docs/README_FILES/README.postfix) amavis unix - - n - 4 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20 localhost:10025 inet n - n - - smtpd -o content_filter= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o smtpd_restriction_classes= -o mynetworks=127.0.0.0/8 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings -o local_header_rewrite_clients= -o local_recipient_maps= -o relay_recipient_maps= Maybe the mistake there is using "localhost" and not "127.0.0.1", which is what the documentation writes? I have done that, but of course, the bounced are still in the queue. How can I undo those and send them to me? -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
On 22/09/2018 18.36, Carlos E. R. wrote:
Maybe the mistake there is using "localhost" and not "127.0.0.1", which is what the documentation writes?
No, it isn't. I tried to fetch some more and it fails.
<2.6> 2018-09-23 01:53:12 Legolas postfix 24889 - - 2DEA1E3850: from=
, size=10268, nrcpt=1 (queue active) <2.6> 2018-09-23 01:53:12 Legolas postfix 27033 - - 971F9E3854: client=localhost[127.0.0.1] <2.6> 2018-09-23 01:53:12 Legolas postfix 27004 - - 971F9E3854: message-id= <2.6> 2018-09-23 01:53:12 Legolas postfix 24889 - - 971F9E3854: from= , size=10685, nrcpt=1 (queue active) <2.5> 2018-09-23 01:53:12 Legolas amavis 21207 - - (21207-11) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [::1]:42840 [98.137.65.36] -> , Queue-ID: 2DEA1E3850, Message-ID: , mail_id: VQe9BO5B48aT, Hits: -, size: 10267, queued_as: 971F9E3854, 269 ms <2.6> 2018-09-23 01:53:12 Legolas postfix 27005 - - 2DEA1E3850: to= , relay=127.0.0.1[127.0.0.1]:10024, delay=0.46, delays=0.18/0/0/0.27, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 971F9E3854) <2.6> 2018-09-23 01:53:12 Legolas postfix 24889 - - 2DEA1E3850: removed <2.6> 2018-09-23 01:53:12 Legolas postfix 27009 - - 971F9E3854: to= , relay=none, delay=0.03, delays=0.01/0/0.02/0, dsn=5.4.6, status=bounced (mail for localhost loops back to myself)
There it is, same problem :-(
<2.6> 2018-09-23 01:53:12 Legolas postfix 27004 - - A0230E3857: message-id=<20180922235312.A0230E3857@Legolas.valinor> <2.6> 2018-09-23 01:53:12 Legolas postfix 24889 - - A0230E3857: from=<>, size=12706, nrcpt=1 (queue active) <2.6> 2018-09-23 01:53:12 Legolas postfix 27010 - - 971F9E3854: sender non-delivery notification: A0230E3857 <2.6> 2018-09-23 01:53:12 Legolas postfix 24889 - - 971F9E3854: removed <2.6> 2018-09-23 01:53:12 Legolas postfix 27011 - - A0230E3857: to=
, relay=none, delay=0.01, delays=0/0/0/0, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found
I found that the procmail entry was missing in mastercf, but still, mail keeps bouncing the same. procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} Finally! Got it. On main.cf: #mydestination = $myhostname, localhost.$mydomain #CER mydestination = $myhostname, localhost.$mydomain, localhost "localhost" was missing there, and it is crucial :-/ -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
participants (1)
-
Carlos E. R.