/var/mail is a symlinks to /var/spool/mail.

Ok, I managed to get the restrictions working so only users from a
specific domain are able to relay.
I specified a file (network_table) with CDIR notation e.g.
130.146.105.0/24 and specifyed my networks = /etc/postfix/network_table.

This works only for one machine which have an address of 130.146.105.x.
Sending mails from other machines with the same IP-range
(130.146.105.x), doesn't reach their final destination like gmail.

The logfile says is it correctly relayed:

Oct 17 12:10:33 new-presley postfix/smtpd[16570]: disconnect from
bonham[130.146.105.250]
Oct 17 12:10:33 new-presley postfix/smtp[16574]: 6CCDD38969:
to=<[EMAIL PROTECTED]>, relay=smtp.example.com[130.145.139.38]:25,
delay=0.07, delays=0.05/0/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0
m9HAAXeh014203 Message accepted for delivery)
Oct 17 12:10:33 new-presley postfix/qmgr[16568]: 6CCDD38969: removed

It looks like it's working, but mails won't be deliverd to eg gmail,
except for mails sending from one machine.


On Fri, 2008-10-17 at 11:17 +0200, mouss wrote:
> Roland de Lepper wrote:
> > I'm trying to migrate from a sendmail installation to postfix, but i'm
> > facing some difficulties.
> > 
> > setup:
> > 
> > 1. mail will be stored on an automount /var/spool/ in mbox format
> 
> you mean /var/spool/mail/? If you have this directory on your system, 
> then it's probably the default (there may be a /var/mail that symlinks 
> to that directory).
> 
> > 2. only users in our domains (abc.def.domain.com, 123.456.domain.com)
> > are alowed to send mail to our relayserver. (smtp.xyz.domain.com).
> > 3. The mailserver can send mail, recieve mail and relay mail.
> 
> Are "mailserver" and "relayserver" two different servers? If so, which 
> one are you confguring postfix on?
> 
> > 
> > The problem is that I get the message relay access denied if I send an
> > email to [EMAIL PROTECTED] 
> > When my networks has the value 0.0.0.0/0, then I can send mail to
> > [EMAIL PROTECTED] With this, i think i have an open relay now, right?
> 
> yes. don't do that.
> 
> You can allow specific clients or networks to relay by putting them in 
> mynetworks. Only do this if you trust these networks.
> 
> Otherwise, setup SASL authentication and use
> 
> smtpd_recipient_restrictions =
>       permit_mynetworks
>       permit_sasl_authenticated
>       reject_unauth_destination
>       ...
> 
> 
> > 
> > In sendmail I can specify a file with domains and hosts which are only
> > allowed to use the relay server.
> > 
> > How can I accomplish the same  with postfix?
> > 
> > Thanks in advance for any suggestions.
> > 
> 

Reply via email to