Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-08-2013, 05:17 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 18

Rep: Reputation: 0
Angry postfix configure problem

dear all,

I have two mail server running with postfix and dovecot for pop3.
dns recoreds for them are like follows, MX preference = 10, mail exchanger = MX preference = 50, mail exchanger =

and all mail users are created in server with mail box.
and smtp server only for mail transfer.

my servers postconf are like follows,

[root@mail postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_rbl_reply = $rbl_code Service unavailable; $rbl_class [$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason}
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_size_limit = 1048576000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydomain =
myhostname =
mynetworks =,,, xxx.xx.xx.0/20
myorigin =
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unverified_recipient, reject_unauth_destination, reject_rbl_client, reject_rbl_client, reject_rbl_client, permit
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
[root@mail postfix]#

Now problem is that, when i send any mail to same domain user or any other sender send me from other domain that mail returned to sender and shows

error "Diagnostic-Code: smtp; 554 5.4.0 Error: too many hops".

What should i do now?? this is very urgent for me.

Thanking you,

Old 04-27-2013, 01:39 AM   #2
Andy Alt
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Debian64 stable, LFS 7.1
Posts: 406

Rep: Reputation: 54
Have you checked your logs for any clues?
Postfix Logging

Whenever something is not working as expected, the first step for troubleshooting the problem is checking your log. Postfix logs all operations whether successful or not. Postfix uses your system's syslog facility to write messages to your log file. Because system logging differs on different platforms, you should review your system documentation to learn about syslog. Most likely, you can find where Postfix logging occurs by checking your system's /etc/syslog.conf file. In the examples below, we'll assume that the log file is located at /var/log/maillog.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure postfix? sathiesh Linux - Newbie 6 12-30-2011 05:14 AM
Configure SASL with Postfix problem halvorls Linux - Server 7 11-27-2008 07:44 PM
Postfix: How to configure postfix to process mail from another host m1ckey78 Linux - Server 3 10-15-2008 11:59 AM
Postfix: help required to configure postfix to redirect email. Wheddod Linux - Software 3 08-20-2008 08:55 AM
Configure postfix, please help! snickie Linux - Server 10 02-28-2007 11:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration