Hi Group,
I am using a Ubuntu server where I have setup fetchmail to retrieve my gmail account emails (via POP3) and procmail to action on them.
I have been testing with a second gmail account of mine and have been receiving the automatic replies successfully. However, when I test other accounts (eg. Hotmail), these accounts do not receive the auto-reply.
My main recipe is an autoreply that I am using to reply to customers that have support requests.
Here is my procmail recipe (defined in ~/.procmailrc):
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
LOGFILE=$HOME/.procmail.log
LOG=""
VERBOSE=yes
#shell - otherwise, nothing will happen when we call formail
SHELL=/bin/bash
SUBJECT=`formail -zxSubject:`
#recipe 1 - customer service support - simple autoresponder
:0 h
*!^FROM_DEAMON
*!^X-Loop: infobot_reply
*^To:.*(support\@xyz\.com)
*^Subject:.*(support)
*!^Subject:.*(Re

| (formail -r -I"Precedence: junk (autoreply)" \
-I"From: Customer.Support <collins.support@contiigo.com> "\
-I"Subject: $SUBJECT" \
-A "X-Loop: infobot-reply" ; \
cat ~/Maildir/support-autoreply.txt) |$SENDMAIL -t
#begin catch_bucket
:0 /dev/null
#end catch_bucket
--
Here is the procmail log when it processes the email sent from a Hotmail account:
procmail: Match on ! "^FROM_DEAMON"
procmail: Match on ! "^X-Loop: infobot_reply"
procmail: No match on "^To:.*(support\@xxxx\.com)"
procmail: Skipped "/dev/null"
procmail: Incomplete recipe
procmail: Assigning "LASTFOLDER=/home/ubuntu/Maildir/new/1350414344.12589_0.myserver"
procmail: Notified comsat: "ubuntu@0:/home/ubuntu/Maildir/new/1350414344.12589_0.myserver"
From MAILER-DAEMON Wed Oct 17 06:05:44 2012
Subject: Returned mail: see transcript for details
Folder: /home/ubuntu/Maildir/new/1350414344.12589_0.myserver 3102
procmail: [12793] Wed Oct 17 06:14:07 2012
procmail: Assigning "SHELL=/bin/bash"
procmail: Executing "formail,-zxSubject:"
procmail: Assigning "SUBJECT=[support] test ticket 44"
procmail: Match on ! "^FROM_DEAMON"
procmail: Match on ! "^X-Loop: infobot_reply"
procmail: Match on "^To:.*(support\@xxx\.com)"
procmail: Match on "^Subject:.*(support)"
procmail: Match on ! "^Subject:.*(Re

"
procmail: Assigning "LASTFOLDER= (formail -r -I"Precedence: junk (autoreply)" \
-I"From: Customer.Support <support@xyz.com> "\
-I"Subject: $SUBJECT" \
-A "X-Loop: infobot-reply" ; \
cat ~/Maildir/support-autoreply.txt) |$SENDMAIL -t"
procmail: Notified comsat: "ubuntu@:/home/ubuntu/Maildir// (formail -r -I"Precedence: junk (autoreply)" \
-I"From: Customer.Support <support@xyz.com> "\
-I"Subject: $SUBJECT" \
-A "X-Loop: infobot-reply" ; \
cat ~/Maildir/support-autoreply.txt) |$SENDMAIL -t"
procmail: Executing " (formail -r -I"Precedence: junk (autoreply)" \
-I"From: Customer.Support <support@xyz.com> "\
-I"Subject: $SUBJECT" \
-A "X-Loop: infobot-reply" ; \
cat ~/Maildir/support-autoreply.txt) |$SENDMAIL -t"
From ubuntu Wed Oct 17 06:14:07 2012
Subject: [support] test ticket 44
Folder: (formail -r -I"Precedence: junk (autoreply)" \ -I"From: Cu 1667
procmail: [12806] Wed Oct 17 06:14:07 2012
procmail: Assigning "SHELL=/bin/bash"
procmail: Executing "formail,-zxSubject:"
procmail: Assigning "SUBJECT=Returned mail: see transcript for details"
procmail: Match on ! "^FROM_DEAMON"
procmail: Match on ! "^X-Loop: infobot_reply"
procmail: No match on "^To:.*(support\@xxx\.com)"
procmail: Skipped "/dev/null"
procmail: Incomplete recipe
procmail: Assigning "LASTFOLDER=/home/ubuntu/Maildir/new/1350414847.12806_0.myserver"
procmail: Notified comsat: "ubuntu@0:/home/ubuntu/Maildir/new/1350414847.12806_0.myserver"
From MAILER-DAEMON Wed Oct 17 06:14:07 2012
Subject: Returned mail: see transcript for details
Folder: /home/ubuntu/Maildir/new/1350414847.12806_0.myserver 3102
Here is what is in the transcript:
----- Transcript of session follows -----
... while talking to mx2.hotmail.com.:
>>> MAIL From:<ubuntu> SIZE=1065 AUTH=<>
<<< 550 DY-001 (SNT0-MC1-F3) Unfortunately, messages from 107.21.30.26 weren't sent. Please contact your Internet service provider. You can tell them that Hotmail does not relay dynamically-assigned IP ranges. You can also refer your provider to
http://mail.live.com/mail/troubleshooting.aspx#errors.
554 5.0.0 Service unavailable
Apologies if this is too much information. Your assistance will be greatly appreciated!
Thanks
Recent comments
23 hours 39 min ago
1 day 4 hours ago
1 day 9 hours ago
1 day 10 hours ago
2 days 1 hour ago
2 days 1 hour ago
2 days 6 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 14 hours ago