with this command on a ubuntu machine:
fetchmail -d0 -avNk -m "/usr/sbin/sendmail -i -f %F -- %T" pop.gmail.com
I can see on the terminal that there is a new message:
fetchmail: POP3> LIST 4 fetchmail: POP3< +OK 4 570 fetchmail: POP3> RETR 4 fetchmail: POP3< +OK message follows Nachricht 123.abc@pop.gmail.com:4 von 4 wird gelesen (570 Bytes) #***********fetchmail: MDA gab Status 67 ungleich Null zurück nicht gelöscht
The sender I can see here:
tail /var/log/mail.log
Where can I see the message and the e-mail subject?
The mail command shows no messages. And also in /var/mail/ and /var/spool/mqueue are no messages.
Or how can I change the command that I can see the message and the subjekt?
fetchmail
tried to deliver retrieved message to local mailbox using /usr/sbin/sendmail
.
It failed with error code 67 ( EX_NOUSER
/* addressee unknown */
).
Suggested fixes to try :
remove --
from sendmail command line. Your "sendmail look alike" may interpret it as recipient address and replace %T
by local account name
OR
Use procmail
instead of sendmail as mda
man fetchmail
Some possible MDAs are "/usr/sbin/sendmail -i -f %F -- %T" (Note: some several older or vendor sendmail versions mistake -- for an address, rather than an indicator to mark the end of the option arguments)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.