[Gllug] mail servers / pop3

itsbruce at uklinux.net itsbruce at uklinux.net
Mon Nov 12 12:27:19 UTC 2001


On 11/12/01, 12:05:09 PM, "Paul Brazier" <pbrazier at cosmos-uk.co.uk> wrote 
regarding RE: [Gllug] mail servers / pop3:


> > Do you mean that only local users logged into the machine
> > should be able
> > to send e-mails to the outside world?

> > Also, does this machine accept
> > mail for a whole domain/subdomain or just for itself?

> Just for itself, it's just a standalone webserver with some other
> servers on the machine as well e.g. mailserver.

In that's case it's easy.

mynetworks=127.0.0.0/8
mydestination=$myhostname, localhost.$mydomain
relaydomains=$mydestination

If the machine were accepting mail for the domain things would become 
much more complex because you'd have to add the domain to $mydestination 
or $relaydomains and since the rules for relaying on postfix are:

# By default, Postfix relays mail
# - from trusted clients whose IP address matches $mynetworks, 
# - from trusted clients matching $relay_domains or subdomains thereof,
# - from untrusted clients to destinations that match $relay_domains
#   or subdomains thereof, except addresses with sender-specified 
routing.
# The default relay_domains value is $mydestination.

users on any machine in your domain would be able to send mail to 
anywhere. In that scenario you'd have to start fiddling with the various 
smtpd restriction parameters, which is a bit more complex.

-- 

Bruce

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list