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
POSTFIX-ADD-FILTER(8)					      System Manager's Manual					     POSTFIX-ADD-FILTER(8)

NAME
postfix-add-filter - add filter service to Postfix master.cf SYNOPSIS
postfix-add-filter [smtp service name...] [smtpd port...] DESCRIPTION
The postfix-add-filter(8) command adds an smtp service named smtp service name and and smtpd server listening on smtpd port to etc/post- fix/master.cf to facilitate integration of SMTP filters such as amavisd-new or clamsmtp. The configuration is based on the upstream recom- mendations for amavisd-new 2.6.0. Adminstrators should verify it is appropriate for their requirements. The original file is copied prior to modification and left in /etc/postfix to make it possible to revert changes easily. Available in the Debian package for Postfix version 2.5.3 and later. DIAGNOSTICS
If the given smtp service name or smtpd port already appear in the master.cf, a message will be printed to standard out and master.cf will not be modified. ENVIRONMENT
MAIL_CONFIG Directory with Postfix configuration files. The postfix-add-filter(8) command should use this, but it currently doesn't. It is hard coded to /etc/postfix. This should be changed. CONFIGURATION PARAMETERS
None FILES
/etc/postfix/master.cf SEE ALSO
postconf(5), Postfix configuration LICENSE
This software is licensed under the MIT open source license. AUTHOR(S) Scott Kitterman <scott@kitterman.com> POSTFIX-ADD-FILTER(8)
All times are GMT -4. The time now is 06:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy