Exim custom hostname headers

GetWiredNet

Member
Oct 24, 2003
16
0
151
Hello,

I share a server with a partner but we have serious problems with Exim and the email headers. We need to allow ourselves and our resellers to have their own mail servers listed in their clients email headers. Listed below is what we need to be able to do by IP or anyway that works.

primary_hostname = companyA companyB ???

Company A Headers:

Received: from [0.0.0.0] (helo=blah)
by (mail.companya.com) with esmtp (Exim 4.24)
id 10000Q-00000-Ed
for [email protected]; Tue, 20 Apr 2004 12:50:38 -0700
Date: Tue, 20 Apr 2004 12:34:09 -0700


Company B Headers:

Received: from [0.0.0.0] (helo=blah)
by (mail.companyb.com) with esmtp (Exim 4.24)
id 10000Q-00000-Ed
for [email protected]; Tue, 20 Apr 2004 12:50:38 -0700
Date: Tue, 20 Apr 2004 12:34:09 -0700

Can anyone help us make this happen, why do we have to get a 2nd server we don't need just so we can have our own email headers?

Thanks - Jeff Dupler
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
why do we have to get a 2nd server we don't need just so we can have our own email headers?
Because that is the way MTA's work. They use the hostname of the server on which they run.

However, with exim, you can use trusted users to allow users to change various email header fields, but I doubt that you can do this in the way you want:

http://www.exim.org/exim-html-4.30/doc/html/spec_5.html#SECT5.2

I would suggest taking the issue up on the Exim mailing list, unless someone here has actually achieved this.
 

experthost1

Member
Apr 20, 2004
9
0
151
I'm on the Exim mailing list and it was just recently posted. There is no way to do this currently in Exim, however it has been wishlisted.

Just figured I'd let you all know.
 

GetWiredNet

Member
Oct 24, 2003
16
0
151
This is serious problem.

I'm getting email kicked back now that places are using rDNS to stop S P A M, look at this kicked back email below.

[email protected]
SMTP error from remote mailer after MAIL FROM:<[email protected]> SIZE=2770: host argus.ritlabs.com [195.138.101.49]: 550 5.7.1 <a[email protected]>... connection [66.249.136.121] is forged (PTR and A records mismatch)

mail.getwired.net is rDNS to IP 66.249.136.130

I'm going to go to Exim web site to look up the problems their next. Just too add, I really don't like Exim Mail Server it's a fight every day to get any CPU from Exim for web sites and POP3.

- Jeff Dupler
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
I doubt that you''ll find another MTA that can offer dynamic EHLO response based on the MX record that you requested.

Those that are implementing such mechanisms will simply find that they will bounce 100% of email from virtual hosting accounts and probably 90%+ from whatever is left since most MTA's don't serve a single domain.

More fool them - might as well unplug your SMTP server.

Now, insisting on a valid rDNS for an incoming IP address is a good idea and something that most moedrn MTAs either implement by default or is easily switched on.