#1  
Old 7th June 2012, 08:56
xfxchilde xfxchilde is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default Mailbox configuration routing

I have multiple domains hosted on a box dedicated for email with ISPConfig 3.

I'm noticed that some servers are giving me bounce backs for bad rDNS (didnt think it was going to be an issue)

So i have multiple static ips setup with the proper rDNS for each domain. How can i configure postfix to send from there respected IPs per anything@domain.com for xxx.xxx.xxx.100
anything@domain2.com for xxx.xxx.xxx.101
anything@domain3.com for xxx.xxx.xxx.102

Is this possible with a single server? Server is behind a VPN/Firewall that has All ips routed to the same internal address. (might be an issue not sure)

Any input would be awesome. At least something to get me on the right path. Might be possible to push the ips to the server itself if needed for solution. If not ill just have to do some type of VMs inside of a single server might be my only choice. i suppose i could assign mutiple internal IPs to the single ethernet card and bind the ips at the device that way as well.

Thanks guys, I 99.9% of i always found an answer by searching the forum. I just didnt see something like this posted. I've been using ispconfig for a few months and its AWESOME!
Reply With Quote
Sponsored Links
  #2  
Old 7th June 2012, 08:59
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,781
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

It is not nescessary to setup postfix in that way to prevent the rdns problem. Just ensure that the reverse dns records for all IP addresses point to the hostname of your server and not to a customer domain as postfix identifies itself at the other servers with the server hostname, the domain of the sender in the email does not matter here.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th June 2012, 09:11
xfxchilde xfxchilde is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I was just using the admin profile for this since its all personal use. i just love the ispconfig layout and functions. Should i create separate accounts for each domain for the email?


Also everytime i do that for my mail records mx toolbox comes back and says the RDNS matches but for the ip assigned to that main domain... so email servers seeing @domain and sending from @domain1.com is the issue.
Reply With Quote
  #4  
Old 7th June 2012, 09:26
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,781
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

Quote:
Should i create separate accounts for each domain for the email?
No. Clients are just access restrictions to records in the ispconfig interface, they have no influence on your email setup. What I referred to was the setup of your rdns records, change them so that the rdns for the IP addresses points to hostname of the server and not to a email domain.

So if the hostname is e.g. server1.somedomain.tld and you host the email domains domain1.tld, domain2.tld and domain3.tld, then the rdns record of the IP address of your server should point back to server1.somedomain.tld. The next thisng that you should check is that the hostname of your server and the "mydomain" setting in postfix main.xf is really a subdomain like server1.somedomain.tld and not domain1.tld, domain2.tld or domain3.tld and the hostname server1.somedomain.tld has to exist in DNS as A-Record and this A-Record must point to the IP address of your server. So when you test the hsotanme of your server with:

dig server1.somedomain.tld

then it should return the IP address of the server and when your run dig on the IP address of your server, then it should return the hostname as reverse dns record.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
xfxchilde (7th June 2012)
  #5  
Old 7th June 2012, 09:35
xfxchilde xfxchilde is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I think i understand now, so the mix up is with the DNS and not postfix. I'm going to double check some settings and test in about an hour or two. all my servers are behind a Prosafe firewall and i have all the external ips forwarded to the internal ip of the server to allow inbound connections. So im going to give this another shot and see what happens

Thanks alot for the quick replies!
Reply With Quote
  #6  
Old 7th June 2012, 09:38
xfxchilde xfxchilde is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default

220 mail.(serverboxname).com ESMTP Postfix (Debian/GNU)
Status Result
OK - xxx.xxx.xxx.120 resolves to otherdomain.com
Warning - Reverse DNS does not match SMTP Banner
OK - Supports TLS.
0 seconds - Good on Connection time
OK - Not an open relay.
0.546 seconds - Good on Transaction Time
Session Transcript:
EHLO please-read-policy.mxtoolbox.com
250-mail.(serverboxname).com
250-PIPELINING
Reply With Quote
  #7  
Old 7th June 2012, 09:57
xfxchilde xfxchilde is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Here is the issue at hand.

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1C3A2F7DC5 4560 Thu Jun 7 01:57:36 admin@domain-1.com
(host mxi1f.craigslist.org[208.82.238.80] refused to talk to me: 554 [95E4FED2-6BDB-41FB-8A02-611B756562E7] systemdomain.com [xxx.xxx.xxx.126] Please setup matching DNS and rDNS records: http://www.craigslist.org/about/help/rdns_failure)
wgxvt-3061291677@hous.craigslist.org


mail.domain-1.com points to xxx.xxx.xxx.120

xxx.xxx.xxx.120-126 is pointed to the same system with confirmed different rDNS settings.
Reply With Quote
  #8  
Old 7th June 2012, 10:05
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,781
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

Ok your revserse record is wrong as it does not use the hostname like I explained above. Your hostname is mail.(serverboxname).com and thats the name were the reverse record has to point to. Change the reverse record so that it poinst to the hostname.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 7th June 2012, 10:40
xfxchilde xfxchilde is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I'll contact my ISP to have the ip rDNS changed to mail.systemdomain.com

i just dont understand how that is going to change the error from sending. because the error is coming back from the ip address on systemdomain.com and not doamin-1.com


There isnt a configuration where

domain-1 sends from ip ending in 120
systemdomain sends from ip ending in 126?

its the sending IP address not matching the domain im emailing from is the problem.

i dont have a problem with that server when i send from anything@systemdomain.com

just any other domain i have linked on that box for emai.
Reply With Quote
  #10  
Old 7th June 2012, 10:49
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,781
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
 
Default

Quote:
There isnt a configuration where

domain-1 sends from ip ending in 120
systemdomain sends from ip ending in 126?
No. Postfix uses just one of the domains of your server for sending, there is no connection between sender email address that you choose in your email client for a email to the IP address that postfix uses to send this email and thats absolutely ok as it does not matter for this problem.

Quote:
its the sending IP address not matching the domain im emailing from is the problem.
No, thats not the problem. The problem is that your reverse dns of the IP address(es) do not match with the server hostname. The error is clear that you posted:

OK - xxx.xxx.xxx.120 resolves to otherdomain.com

or in other words, the IP address xxx.xxx.xxx.120 has a reverse record which points to otherdomain.com instead of mail.(serverboxname).com.

A postfix mail system identifies itself to other server always with the hostname of the server (mail.(serverboxname).com), the domain that is used as sender address does not matter here.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius and Mysql uvstudios HOWTO-Related Questions 4 19th February 2014 12:11
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 4th April 2010 23:28
squirrelmail and postfix witoszek General 12 1st December 2009 18:07
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15


All times are GMT +2. The time now is 09:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.