From: Marvin D. <acc...@ma...> - 2024-10-30 20:11:02
|
Hey all, I have the following setup: local mailbox --> fetchmail --> procmail --> another local mailbox My .procmailrc is configured to reject certain mails with exitcode 67 My .fetchmailrc is configured not to keep mails and fetch all. My expectation would be, that mails "rejected" by procmail would be bounced by fetchmail. However that is not the case. Instead fetchmail fetches the mails on every call and doesn't generate any bouncemails for them. Is there anything I'm doing wrong, or is it just not possible to generate a bouncemail in this scenario? I've also tried setting "antispam 067" in .fetchmailrc but that did not change anything. Note: I did also install featchmail on Archlinux (version 6.4.39) but experienced the same behavior here. $ LC_ALL=C fetchmail -V This is fetchmail release 6.3.24+GSS+RPA+NTLM+SDPS+SSL+HESIOD+NLS+KRB5. Copyright (C) 2002, 2003 Eric S. Raymond Copyright (C) 2004 Matthias Andree, Eric S. Raymond, Robert M. Funk, Graham Wilson Copyright (C) 2005 - 2006, 2010 - 2012 Sunil Shetye Copyright (C) 2005 - 2012 Matthias Andree Fetchmail comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For details, please see the file COPYING in the source or documentation directory. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/) Fallback MDA: (none) Linux corvus.uberspace.de 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Taking options from command line and /home/whtmp/.fetchmailrc Idfile is /home/whtmp/.fetchids Fetchmail will forward misaddressed multidrop messages to whtmp. Fetchmail will treat permanent errors as permanent (drop messages). Options for retrieving fro...@wh...@localhost: True name of server is localhost. Protocol is IMAP. All available authentication methods will be tried. Server nonresponse timeout is 300 seconds (default). Default mailbox selected. All messages will be retrieved (--all on). Fetched messages will not be kept on the server (--keep off). Old messages will not be flushed before message retrieval (--flush off). Oversized messages will not be flushed before message retrieval (--limitflush off). Rewrite of server-local addresses is enabled (--norewrite off). Carriage-return stripping is enabled (stripcr on). Carriage-return forcing is disabled (forcecr off). Interpretation of Content-Transfer-Encoding is enabled (pass8bits off). MIME decoding is disabled (mimedecode off). Idle after poll is disabled (idle off). Nonempty Status lines will be kept (dropstatus off) Delivered-To lines will be kept (dropdelivered off) Fetch message size limit is 100 (--fetchsizelimit 100). Do binary search of UIDs during 3 out of 4 polls (--fastuidl 4). Messages will be delivered with "/usr/bin/procmail". Recognized listener spam block responses are: 67 Single-drop mode: 1 local name recognized. No UIDs saved from this host. $ LC_ALL=C fetchmail --nodetach -v --nosyslog fetchmail: 6.3.24 querying localhost (protocol IMAP) at Tue Oct 29 21:25:32 2024: poll started Trying to connect to ::1/143...connected. fetchmail: IMAP< * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SPECIAL-USE LITERAL+ STARTTLS LOGINDISABLED] Dovecot ready. fetchmail: IMAP> A0001 CAPABILITY fetchmail: IMAP< * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SPECIAL-USE LITERAL+ STARTTLS LOGINDISABLED fetchmail: IMAP< A0001 OK Pre-login capabilities listed, post-login capabilities have more. fetchmail: IMAP> A0002 STARTTLS fetchmail: IMAP< A0002 OK Begin TLS negotiation now. fetchmail: Server certificate: fetchmail: Issuer Organization: GlobalSign nv-sa fetchmail: Issuer CommonName: GlobalSign GCC R6 AlphaSSL CA 2023 fetchmail: Subject CommonName: *.uberspace.de fetchmail: Subject Alternative Name: *.uberspace.de fetchmail: Subject Alternative Name: uberspace.de fetchmail: Server CommonName mismatch: *.uberspace.de != localhost fetchmail: localhost key fingerprint: 92:76:D1:DB:4B:EB:7B:50:CD:48:D1:34:66:2C:6D:9D fetchmail: SSL/TLS: using protocol TLSv1.2, cipher ECDHE-RSA-AES256-GCM-SHA384, 256/256 secret/processed bits fetchmail: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!) fetchmail: IMAP> A0003 CAPABILITY fetchmail: IMAP< * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SPECIAL-USE LITERAL+ AUTH=PLAIN fetchmail: IMAP< A0003 OK Pre-login capabilities listed, post-login capabilities have more. fetchmail: localhost: upgrade to TLS succeeded. fetchmail: IMAP> A0004 LOGIN"te...@wh..." * fetchmail: IMAP< * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE SPECIAL-USE LITERAL+ NOTIFY SPECIAL-USE fetchmail: IMAP< A0004 OK Logged in fetchmail: IMAP> A0005 SELECT "INBOX" fetchmail: IMAP< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) fetchmail: IMAP< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. fetchmail: IMAP< * 2 EXISTS fetchmail: IMAP< * 0 RECENT fetchmail: IMAP< * OK [UNSEEN 1] First unseen. fetchmail: IMAP< * OK [UIDVALIDITY 1729362238] UIDs valid fetchmail: IMAP< * OK [UIDNEXT 4] Predicted next UID fetchmail: IMAP< A0005 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 secs). fetchmail: IMAP> A0006 EXPUNGE fetchmail: IMAP< A0006 OK Expunge completed (0.001 + 0.000 secs). 2 messages fo...@wh... at localhost. fetchmail: IMAP> A0007 FETCH 1:2 RFC822.SIZE fetchmail: IMAP< * 1 FETCH (RFC822.SIZE 5598) fetchmail: IMAP< * 2 FETCH (RFC822.SIZE 5632) fetchmail: IMAP< A0007 OK Fetch completed (0.001 + 0.000 secs). fetchmail: IMAP> A0008 FETCH 1 RFC822.HEADER fetchmail: IMAP< * 1 FETCH (RFC822.HEADER {5586} reading mes...@wh...@localhost:1 of 2 (5586 header octets) # fetchmail: IMAP< ) fetchmail: IMAP< A0008 OK Fetch completed (0.005 + 0.000 + 0.004 secs). fetchmail: IMAP> A0009 FETCH 1 BODY.PEEK[TEXT] fetchmail: IMAP< * 1 FETCH (BODY[TEXT] {12} (12 body octets) ** fetchmail: IMAP< ) fetchmail: IMAP< A0009 OK Fetch completed (0.001 + 0.000 secs). procmail: [16702] Tue Oct 29 21:25:33 2024 procmail: Assigning "LOGFILE=/home/whtmp/procmail.log" procmail: Opening "/home/whtmp/procmail.log" fetchmail: MDA returned nonzero status 67 not flushed fetchmail: IMAP> A0010 FETCH 2 RFC822.HEADER fetchmail: IMAP< * 2 FETCH (RFC822.HEADER {5611} reading mes...@wh...@localhost:2 of 2 (5611 header octets) # fetchmail: IMAP< ) fetchmail: IMAP< A0010 OK Fetch completed (0.002 + 0.000 + 0.001 secs). fetchmail: IMAP> A0011 FETCH 2 BODY.PEEK[TEXT] fetchmail: IMAP< * 2 FETCH (BODY[TEXT] {21} (21 body octets) * fetchmail: IMAP< ) fetchmail: IMAP< A0011 OK Fetch completed (0.001 + 0.000 secs). procmail: [16706] Tue Oct 29 21:25:33 2024 procmail: Assigning "LOGFILE=/home/whtmp/procmail.log" procmail: Opening "/home/whtmp/procmail.log" fetchmail: MDA returned nonzero status 67 not flushed fetchmail: IMAP> A0012 LOGOUT fetchmail: IMAP< * BYE Logging out fetchmail: IMAP< A0012 OK Logout completed (0.001 + 0.000 secs). fetchmail: 6.3.24 querying localhost (protocol IMAP) at Tue Oct 29 21:25:33 2024: poll completed fetchmail: normal termination, status 0 |