Amavis Error Too Many Hops
Contents |
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct amavisd too many hops Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu
Postfix Spamassassin Too Many Hops
Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: error too many hops (in reply to end of data command) Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and
554 Error Too Many Hops
Juju Server Platforms [ubuntu] Postfix/Amavis "too many hops" issue Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 12 Thread: Postfix/Amavis "too many hops" issue Thread Tools too many hops error message Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode January 26th, 2015 #1 jmaciak1987 View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jan 2015 Beans 9 Postfix/Amavis "too many hops" issue Ever since adding Amavis/Spamassassin/clamav/postgrey to my postfix server, I'm getting slammed with "Undelivered Mail Returned to Sender". Specifically: Code: 554 5.4.0 Error: too many hops (in reply to end of DATA command) Our setup: We use Gmail as our external mail handler. Mail goes to Google, if Google doesn't have that address (person@example.org), it then goes to Mailarmory (which is an external spam filtering service), then it goes to our local mailserver (hostname "Blackhole") that holds a ton of aliases which point any person@example.org not on Google to the appropriate place (i.e. person@harvard.edu). We're trying to get rid of Mailarmory and let our local mailserver do the filtering. I installed and configured Amavis and all its friends according to this guide: https://help.ubuntu.com/community/PostfixAmavisNew Watching the mail.l
since adding Amavis/Spamassassin/clamav/postgrey to my postfix server, I'm getting slammed with "Undelivered Mail Returned to Sender". Specifically: Code: 554 5.4.0 Error: too many hops
554 5.4.0 Error: Too Many Hops
(in reply to end of DATA command) Our setup: We use Gmail as
554 5.4.0 Office 365
our external mail handler. Mail goes to Google, if Google doesn't have that address ([emailprotected]), it then goes to too many hops (in reply to end of data command) Mailarmory (which is an external spam filtering service), then it goes to our local mailserver (hostname "Blackhole") that holds a ton of aliases which point any [emailprotected] not on Google to the https://ubuntuforums.org/showthread.php?t=2262656 appropriate place (i.e. [emailprotected]). We're trying to get rid of Mailarmory and let our local mailserver do the filtering. I installed and configured Amavis and all its friends according to this guide: https://help.ubuntu.com/community/PostfixAmavisNew Watching the mail.log, mail is coming in and out of the local mail server (Blackhole). Spam is being tagged appropriately, although the filter seems a bit lax at the moment. https://www.howtoforge.com/community/threads/ubuntu-postfix-amavis-too-many-hops-issue.68210/ My biggest problem is the amount of "Undelivered Mail Returned to Sender" messages I'm getting that have the "too many hops" error. Mailarmory is still in place at the moment because this is a production environment and we've only deleted a few of the whitelisted addresses at Mailarmory as a test. My only theory at the moment is that there is a loop created between the local mail server Blackhole and Mailarmory, but I'm not sure why exactly. I've attached my main.cf, master.cf, and an excerpt of mail.log showing what happens when one of these messages gets delivered with the "too many hops" error. If any other info is needed, please let me know. Thanks! Attached Files: main.cf.txt File size: 5.9 KB Views: 36 master.cf.txt File size: 6.6 KB Views: 29 mail.log.excerpt.txt File size: 5.1 KB Views: 28 JMac87, Jan 26, 2015 #1 (You must log in or sign up to reply here.) Show Ignored Content Share This Page Tweet Log in with Facebook Log in with Twitter Log in with Google Your name or email address: Do you already have an account? No, create an account
Peter-2 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Postfix - altermime - amavis - Too many hops Dear all I'd like to ask you a question. In my master.cf is: smtp inet n http://postfix.1071664.n5.nabble.com/Postfix-altermime-amavis-Too-many-hops-td24522.html - n - - smtpd .... .... 127.0.0.1:10025 inet n - n - - smtpd -o content_filter=disclaimer: -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject too many -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 too many hops -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks ##disclaimer disclaimer unix - n n - - pipe flags=Rq user=altermime argv=/etc/postfix/filter/disclaimer -f ${sender} -- ${recipient} It leads to error: Too many hops , in the log there is loop. When I change it to: smtp inet n - n - - smtpd -o content_filter=disclaimer: .... 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_