Mailinglist Archive: opensuse (4343 mails)
| < Previous | Next > |
sendmail rewriting From: headers
- From: James Ogley <james@xxxxxxxxxxxxxxxxxxx>
- Date: 25 Nov 2002 09:27:59 +0000
- Message-id: <1038216478.3029.41.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Hi all,
Spending a week at home has resulted in me wanting to use my mail server
on my home LAN a lot more than usual, and it's caused me to find an
issue I hadn't previously been aware of with my config, and I can't
figure how to solve it.
Basically, my setup is that I have multiple domains, which I retrieve
using fetchmail for local delivery using sendmail.
For sending mail, my DSL provider has a mail server, which I use a smart
relay host, but in order to deliver to it, I need to masquerade as a
valid domain, it rejects the mails if I use the FQDN of my mail server
as it's a hostname on my (non-existing) home LAN domain.
I've achieved this by using the mail & sendmail files in /etc/sysconfig.
In 'mail' I have set FROM_HEADER to one of my domains - this then
becomes the masquerade host when sendmail talks to my provider's server.
In sendmail I've set SEDMAIL_SMARTHOST correctly and listed my domains
in SENDMAIL_LOCALHOST along with the FQDN of my mail server and
localhost.
The trouble is that this also results in sendmail rewriting the From:
header, so that all mail comes from the domain in FROM_HEADER.
So that if FROM_HEADER is domain1.com, mail from james@xxxxxxxxxxx will
end up being addressed james@xxxxxxxxxxx
Obviously I want to send mail from my different domains depending on who
I'm sending it to, but I don't want it all then to be rewritten by my
server.
Anyone know if there's a way I can get sendmail to set the masquerade
host without then rewriting all my mail?
Cheers
James
--
James Ogley, Webmaster, Rubber Turnip james@xxxxxxxxxxxxxxxxxxx
http://www.rubberturnip.org.uk Jabber: riggwelter@xxxxxxxxxxxx
Using Free Software since 1994, running GNU/Linux (SuSE 8.1).
GNOME updates for SuSE: http://www.usr-local-bin.org
Spending a week at home has resulted in me wanting to use my mail server
on my home LAN a lot more than usual, and it's caused me to find an
issue I hadn't previously been aware of with my config, and I can't
figure how to solve it.
Basically, my setup is that I have multiple domains, which I retrieve
using fetchmail for local delivery using sendmail.
For sending mail, my DSL provider has a mail server, which I use a smart
relay host, but in order to deliver to it, I need to masquerade as a
valid domain, it rejects the mails if I use the FQDN of my mail server
as it's a hostname on my (non-existing) home LAN domain.
I've achieved this by using the mail & sendmail files in /etc/sysconfig.
In 'mail' I have set FROM_HEADER to one of my domains - this then
becomes the masquerade host when sendmail talks to my provider's server.
In sendmail I've set SEDMAIL_SMARTHOST correctly and listed my domains
in SENDMAIL_LOCALHOST along with the FQDN of my mail server and
localhost.
The trouble is that this also results in sendmail rewriting the From:
header, so that all mail comes from the domain in FROM_HEADER.
So that if FROM_HEADER is domain1.com, mail from james@xxxxxxxxxxx will
end up being addressed james@xxxxxxxxxxx
Obviously I want to send mail from my different domains depending on who
I'm sending it to, but I don't want it all then to be rewritten by my
server.
Anyone know if there's a way I can get sendmail to set the masquerade
host without then rewriting all my mail?
Cheers
James
--
James Ogley, Webmaster, Rubber Turnip james@xxxxxxxxxxxxxxxxxxx
http://www.rubberturnip.org.uk Jabber: riggwelter@xxxxxxxxxxxx
Using Free Software since 1994, running GNU/Linux (SuSE 8.1).
GNOME updates for SuSE: http://www.usr-local-bin.org
| < Previous | Next > |