In my setup the mailserver is basically receiving the mail and then
relayin it to the mailserver in the local lan.
Thanks to the spammers there are tons of email coming in with unknown
users. Rather then having the traffic to go from the bastion maillserver
to the local one I thought of using the relay_recipient_maps.
1) Based on the info this is what I need or do I need something else ?
# REJECTING UNKNOWN RELAY USERS
#
# The relay_recipient_maps parameter specifies optional lookup tables
# with all addresses in the domains that match $relay_domains.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown relay users. This feature is off by default.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify an @domain.tld wild-card, or specify
# a us...@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
2. If this is the maps I need can someone put these into plain english
with an example how the "relay_recipients" file looks like
Thanks
--
Togan Muftuoglu
> In my setup the mailserver is basically receiving the mail and then
> relayin it to the mailserver in the local lan.
>=20
> Thanks to the spammers there are tons of email coming in with unknown
> users. Rather then having the traffic to go from the bastion maillserve=
r
> to the local one I thought of using the relay_recipient_maps.
>=20
> 1) Based on the info this is what I need or do I need something else ?
Nope, you've found the right parameter.
> 2. If this is the maps I need can someone put these into plain english
> with an example how the "relay_recipients" file looks like
How a relay_recipient_maps map looks depends on the map type. The RHS of=20
the lookup result is ignored, so a hash/dbm/btree map with
valida...@domain.com whatever
will do. If you want to use another map type (LDAP, MySQL, ...) make=20
sure queries return something for valid users and nothing (zero entries,=20
not empty strings) for non-existing users.
--=20
Magnus B=E4ck
mag...@dsek.lth.se