|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: local user question
From: Magnus Bäck (magnus
dsek.lth.se)
Date: Fri Apr 02 2004 - 04:23:15 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Friday, April 02, 2004 at 10:50 CEST,
Hernan Marino <sisdin
sistemasdinamicos.com.ar> wrote:
> I've been reading lot of docs and found very useful things, but I cant
> find the solution to this very simple problem.
> My users can send email from localhost, but when they use their web
> pages postfix gets connected by apache, so it shows apache
domain in
> the return-path.
> What I want to do is to only allow email from apache
mydomain
> (generated locally) to go to any of the local_domains and no outside,
> to prevent unidentified emails to go out (mainly because of spam).
Solve the right problem. Your problem is that PHP does not set the
sender address correctly. Solve that, and you won't need to solve the
problem you're asking about.
> So if the users want to use, for ex the php mail() function, they can
> define an alias and send the apache generated email to them self, and
> then the message can go outside with the user identified.
Aliases do not modify the sender address.
> I read lot of reject_non_fqdn_hostname, etc UCE directives, but cant
> find the one suitable for the access table, something like
> reject_non_local_domain or something like that.
You can use restriction classes for this.
http://www.porcupine.org/postfix-mirror/newdoc/RESTRICTION_CLASS_README.html
--
Magnus Bäck
magnus
dsek.lth.se
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]