OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Setting the MAIL FROM of all outgoing e-mail
From: Thomas Andres (tandresvis.ethz.ch)
Date: Sun Aug 13 2000 - 07:47:12 CDT


> I have this slightly "unique" need, the solution of which I can't find in
> the documentation. I hope you can help me out. I have a setup where the
> entire LAN sends e-mail through Postfix on my Linux box which then
> connects to the Internet via a dial-up connection to my ISP to send the
> e-mail. I have a catch-all virtual domain hosted for which I have an
> unlimited number of domain addresses. Therefore my users each have e-mail
> addresses they send as, all domain. I'd like to be able to use my ISP's
> SMTP server as a relayhost to save myself the trouble of slow links and
> things like that. Unfortunately my ISP only relays e-mail if the MAIL FROM
> (it doesn't care what the e-mail headers or the body are) is
> somethingisp.domain.name. I've already tried sending e-mail by doing a
> raw telnet to the SMTP port, and it works. How can I tell Postfix to send
> e-mail as some address without modifying the FROM header? I tried
> sender_canonical rewrites, but it modifies the e-mail, and is therefore
> not the solution I'm looking for. Please help. Thanks.

I suggest you eigther talk to your ISP (because his relaying restriction
is stupid) or you hack the source to use a constant as MAIL FROM
parameter.

Bye
Thomas

-- 
"I'd rather have a bottle in front of me than a frontal lobotomy."