Centos 6 Postfix 1 IP Two Domains Two Machines

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Centos 6 Postfix 1 IP Two Domains Two Machines
# 1  
Old 06-07-2013
Centos 6 Postfix 1 IP Two Domains Two Machines

Hello Folks,

I have what I believe is a basic problem. I'm sure the problem is related to my incorrect understanding of the terms used by the postfix main.cf file.

I have two mail servers. 192.168.1.110 (msrecycle.com) and 192.168.1.111 (sportbikebody.com). Now what I am trying to do is have any mail for sportbikebody.com forwarded from 192.168.1.110 (msrecycle.com which is server that gets all pop3 smtp imap etc traffic from the router) to 192.168.1.111. I would love to simply forward the ports to two IPs but cannot do that with my router.

FYI HTTP is working correctly and accesses the correct server for each domain.

I know I am close because I see the log on the .111 address receiving the mail but it appears to try any resolve the sportbikebody DNS and does so which gives it the external address and therefore I get a too many hops message. I hope this is clear. Let me know what you guys want to see.

Here is tail of the log from .111 (sportbikebody.com)

Jun 7 09:45:29 www postfix/smtpd[2766]: connect from unknown[192.168.1.110]
Jun 7 09:45:29 www postfix/smtpd[2766]: 176DB5B3F: client=unknown[192.168.1.110]
Jun 7 09:45:29 www postfix/cleanup[2770]: 176DB5B3F: message-id=<033501ce6385$3b811ac0$b2835040$@com>
Jun 7 09:45:29 www postfix/qmgr[1787]: 176DB5B3F: from=<chris@msrecycle.com>, size=28211, nrcpt=1 (queue active)
Jun 7 09:45:29 www postfix/smtpd[2766]: disconnect from unknown[192.168.1.110]
Jun 7 09:45:29 www postfix/smtp[2771]: 176DB5B3F: to=<chris@sportbikebody.com>, relay=sportbikebody.com[207.172.196.140]:25, delay=0.13, delays=0.04/0/0.07/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 32BF16C014B)
Jun 7 09:45:29 www postfix/qmgr[1787]: 176DB5B3F: removed
Jun 7 09:45:29 www postfix/smtpd[2766]: connect from unknown[192.168.1.110]
Jun 7 09:45:29 www postfix/smtpd[2766]: 38E615B3F: client=unknown[192.168.1.110]
Jun 7 09:45:29 www postfix/smtpd[2766]: disconnect from unknown[192.168.1.110]

Here is the error message

<chris@sportbikebody.com>: host 192.168.1.111[192.168.1.111] said: 554 5.4.0
Error: too many hops (in reply to end of DATA command)

I am actually a body guy - I am the painter for both these domains so if you own a sportbike (or just a plain old motorcycle) and you can help me work out a few issues I am having I'll be happy to remember it when / if you need repairs.

Last edited by SportBikeBody; 06-07-2013 at 11:09 AM.. Reason: Adding Info
# 2  
Old 06-11-2013
Your mail is going in a never-ending loop! Smilie On the sportbikebody.com server try adding the following to /etc/hosts, restart postfix, then try again.
Code:
192.168.1.111 sportbikebody.com

If that doesn't work, show me a new tail of maillog, the output of /etc/hosts, and the output of postconf -n. A better solution in the future would be to host the email of both domains on the same server if that is a possibility. I manage a few mail servers so if you would want to do that just ask me how.

Good luck!

Last edited by TayKimchi; 06-11-2013 at 12:54 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Postfix: Active Directory and postfix alias

I have a mailserver with postfix i want to alias all mail for administrator@domain.fqdn to root@domain.fqdn I have the aliases configured,and i did newliases but doesn't work. How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

2. Red Hat

Postfix - Send mails to specific domains only

Hello, I am working on postfix server on CentOS 5.8 which will be send mails to a specific domain only. All the things are nearly finished but i am not getting how to setup the postfix to send mails to specific domains. Please help me out. Thanks, Sunny (2 Replies)
Discussion started by: sunnysthakur
2 Replies

3. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

4. Red Hat

SMTP authentication on Postfix/Dovecot on CentOS

Hi, I did setup one E-mail Server with postfix/dovecot/squirrelmail on CentOS 5.x and is working fine. I did configure SMTP authentication (without TSL/SSL) so that users from outside can send emails via our email server with SMTP auth. One weird issue i'm getting is that it's working from... (1 Reply)
Discussion started by: prvnrk
1 Replies

5. UNIX for Dummies Questions & Answers

Please help with Postfix config issue - How to allow remote Exchange server to relay to my postfix

Hi guys One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered. What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

6. Red Hat

postfix connection timed out issue on centOS

hello everyone i hav LITTLE issue, pending for just last week regarding postfix/sendmail server. M not able to forward mail to outer domain. I hav not configured DNS server uptill now, so nvr tried to receive mail from any domain, as i don require that as of now. Can anybody suggest a... (4 Replies)
Discussion started by: oracle.test2
4 Replies

7. IP Networking

postfix - reinject mail to postfix from hold queue directory

hi all. Am using smtpd_recipient_restrictions & check_recipient_access in postfix. The hash file looks like this: emailaddress1 HOLD emailaddress2 HOLD The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies
Login or Register to Ask a Question