On 2020.03.03 19:33, Philip Webb wrote:
200303 Jack wrote:
> On 2020.03.03 02:54, Philip Webb wrote:
>> However, my ISP is now sending me an e-mail every 5 min ,
>> after Fetchmail checks for mail :
>>
>> From: "(Cron Daemon)" <purslow@***>
>> To: purslow@***
>> Subject: Cron <purslow@localhost> test -e /var/run/dhcpcd.pid &&
>> /usr/bin/fetchmail -s 2> /dev/null
>> fetchmail: Query status=2 (SOCKET)
> Are you sure the message is coming from your ISP
> and not locally generated, perhaps by cron ?
Thanks, you're correct. 'man fetchmail' under 'EXIT CODES' says
2 An error was encountered when attempting to open a socket
to retrieve mail. If you don't know what a socket is,
don't worry about it -- just treat this as an 'unrecoverable
error'.
This error can also be because a protocol fetchmail wants to use
is not listed in /etc/services.
It looks like that latter, but 'services' has > 1100 lines .
'.fetchmailrc' uses 'sslproto', but otherwise I don't know what it
wants.
The simple solution is to have Procmail treat these msgs as spam,
but it wb nice to know just what service it's failing to find.
Any suggestions ?
I can't help you with the actual protocol/fetchmail error, but there is
probably a cron configuration that might avoid sending such emails at
all - I don't know if it can be controlled at the level of individual
cron entries.
Can you try to run fetchmail manually, perhaps with increased verbosity
or debug output?