Sponsored Content
Operating Systems Linux Red Hat Centos 6 Postfix 1 IP Two Domains Two Machines Post 302818325 by SportBikeBody on Friday 7th of June 2013 10:04:23 AM
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
 

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

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. 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

6. 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

7. 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
TCPDROP(8)						    BSD System Manager's Manual 						TCPDROP(8)

NAME
tcpdrop -- drop TCP connections SYNOPSIS
tcpdrop local-address local-port foreign-address foreign-port tcpdrop [-l] -a DESCRIPTION
The tcpdrop command may be used to drop TCP connections from the command line. If -a is specified then tcpdrop will attempt to drop all active connections. The -l flag may be given to list the tcpdrop invocation to drop all active connections one at a time. If -a is not specified then only the connection between the given local address local-address, port local-port, and the foreign address foreign-address, port foreign-port, will be dropped. Addresses and ports may be specified by name or numeric value. Both IPv4 and IPv6 address formats are supported. The addresses and ports may be separated by periods or colons instead of spaces. EXIT STATUS
The tcpdrop utility exits 0 on success, and >0 if an error occurs. EXAMPLES
If a connection to httpd(8) is causing congestion on a network link, one can drop the TCP session in charge: # sockstat -c | grep httpd www httpd 16525 3 tcp4 192.168.5.41:80 192.168.5.1:26747 The following command will drop the connection: # tcpdrop 192.168.5.41 80 192.168.5.1 26747 The following command will drop all connections but those to or from port 22, the port used by sshd(8): # tcpdrop -l -a | grep -vw 22 | sh SEE ALSO
netstat(1), sockstat(1) AUTHORS
Markus Friedl <markus@openbsd.org> Juli Mallett <jmallett@FreeBSD.org> BSD
January 30, 2013 BSD
All times are GMT -4. The time now is 04:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy