Tema: Re: apie postfix
Autorius: Nerijus Kislauskas
Data: 2009-07-29 10:13:24
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

emnt wrote:
> ar imanoma padaryti, kad kazkoks pasto accountas (pvz: aaa@vvv.lt,
> siusdamas laishkus per mano serveri) galetu issiusti laishkus tik
> keliems nustatytiems gavejams, jeigu siuncia nenustatytiems gavejams
> tuos laishku blokuotu.
> ?

/etc/postfix/main.cf:
....
smtpd_restriction_classes = aaa_restrictions
aaa_restrictions =
	...
	check_recipient_access hash:/etc/postfix/recipients
	reject

smtpd_sender_restrictions =
	...
	check_sender_access hash:/etc/postfix/sender
	...


/etc/postfix/recipients:
recipient1@kazkas.lt	OK
recipient2@kazkas.lt	OK
recipient3@kazkas.lt	OK


/etc/postfix/sender:
aaa@pvz.lt		aaa_restrictions


Manau turėtų sulipt arba gali reikėti mažų pakeitimų.

Pagarbiai
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpv9pQACgkQVaDswePJAMVPBQCfTS6Wac+Yh5zWuDrPnD+UJKfy
bAkAn3gQ7FlwWrUNxyfN0eDnMbJhQMx+
=1JpV
-----END PGP SIGNATURE-----