One of My Small Projects Required fetch mail to pull mails on linux system.
1. Need to download mail from remote server using fetchmail on linux
2.fetchmail will be added to crontab and scheduled to pull mail for every 2 minutes
3.each mail will be downloaded to a seperate text file
while configuring fetech mail with mda “/usr/bin/procmail -d %T” getting syntax error and i tried with single quotes ‘ and without quotes too .
/usr/bin/fetchmail –daemon 0 -v -f /etc/fetchmailrc
fetchmail: WARNING: Running as root is discouraged.
fetchmail:/etc/fetchmailrc:13: syntax error at mda
Though it is not the solution for this problem , i called fetch mail in crontab this way
*/1 * * * * /usr/bin/fetchmail -m “/usr/bin/procmail -d %T”–daemon 0 -v -f /etc/fetchmailrc &> /dev/null
0 Comments