This is quite strange:
I have been running fetchmail from a cronjob for a few years now, to
collect my messages from an IMAP server and forward it to another one.
This was and is the (only) cronjob:
# m h dom mon dow command
5 * * * * /usr/bin/fetchmail > /dev/null
No changes of the .fetchmailrc, neither. Only, since I installed
(k)ubuntu 10.04, regularly fetchmail cannot .forward the messages
whenever it is called at the full hour plus 5 minutes (e.g. 11:05,
12:05), because postfix seems unavailable:
"fetchmail: connection to localhost:smtp [::1/25] failed: Connection
refused." is what I get in the mail at *:05.
postconf -n:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_transport = smtp
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 102400000
mydestination = example.com, mybox, localhost.localdomain, localhost
myhostname = mybox.example.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter =
relay_transport = smtp
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
(but I guess nothing wrong here, since at all other times it works fine)
Here is the postfix log for the same minute when fetchmail couldn't
connect as above:
May 12 11:05:01 example postfix/smtpd[5183]: connect from
localhost[127.0.0.1]
May 12 11:05:01 example postfix/smtpd[5183]: 9AFC694118E:
client=localhost[127.0.0.1]
May 12 11:05:01 example postfix/cleanup[5187]: 9AFC694118E:
message-id=<bdbcaa51093724499dc38ed600172...@pacific-conferences.com>
May 12 11:05:01 example postfix/qmgr[1281]: 9AFC694118E:
from=<marketing...@pacific-conferences.com>, size=23920, nrcpt=1 (queue
active)
May 12 11:05:01 example postfix/cleanup[5187]: BB1B2941191:
message-id=<bdbcaa51093724499dc38ed600172...@pacific-conferences.com>
May 12 11:05:01 example postfix/smtpd[5183]: disconnect from
localhost[127.0.0.1]
May 12 11:05:01 example postfix/local[5189]: 9AFC694118E:
to=<udip...@localhost>, relay=local, delay=0.23,
delays=0.14/0.01/0/0.09, dsn=2.0.0, status=sent (forwarded as BB1B2941191)
May 12 11:05:01 example postfix/qmgr[1281]: BB1B2941191:
from=<marketing...@pacific-conferences.com>, size=24059, nrcpt=1 (queue
active)
May 12 11:05:01 example postfix/qmgr[1281]: 9AFC694118E: removed
May 12 11:05:01 example postfix/pickup[4738]: DEBF794118E: uid=1000
from=<udippel>
May 12 11:05:01 example postfix/cleanup[5187]: DEBF794118E:
message-id=<20100512030501.debf7941...@example.mybox.example.com>
May 12 11:05:02 example postfix/qmgr[1281]: DEBF794118E:
from=<udip...@example.mybox.example.com>, size=650, nrcpt=1 (queue active)
May 12 11:05:02 example postfix/cleanup[5187]: 01974940ACA:
message-id=<20100512030501.debf7941...@example.mybox.example.com>
May 12 11:05:02 example postfix/local[5189]: DEBF794118E:
to=<udip...@example.mybox.example.com>, orig_to=<udippel>, relay=local,
delay=0.48, delays=0.42/0/0/0.06, dsn=2.0.0, status=sent (forwarded as
01974940ACA)
May 12 11:05:02 example postfix/qmgr[1281]: DEBF794118E: removed
May 12 11:05:02 example postfix/qmgr[1281]: 01974940ACA:
from=<udip...@example.mybox.example.com>, size=805, nrcpt=1 (queue active)
May 12 11:05:02 example postfix/smtp[5191]: 01974940ACA:
to=<udip...@mymta.example.com>, orig_to=<udippel>,
relay=mymta.example.com[172.16.0.4]:25, delay=0.13,
delays=0.06/0.01/0.04/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued
as 2208B186)
May 12 11:05:02 example postfix/qmgr[1281]: 01974940ACA: removed
May 12 11:05:03 example postfix/smtp[5190]: BB1B2941191:
to=<udip...@mymta.example.com>, orig_to=<udip...@localhost>,
relay=mymta.example.com[172.16.0.4]:25, delay=1.3,
delays=0.08/0.01/0.01/1.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued
as 14C38186)
May 12 11:05:03 example postfix/qmgr[1281]: BB1B2941191: removed
Can anyone help me to explain what has been going on, since I installed
Ubuntu 10.04?
Uwe