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