Portál AbcLinuxu, 8. května 2025 04:30
Príklad: - všetky príchodzie emaily pre @domena1.sk forwarduj na ciel@domena2.sk - všetky príchodzie emaily pre @domena3.sk forwarduj na ciel@domena4.sk - všetky príchodzie emaily pre ujo@dom.sk forwarduj na new@dom20.sk - všetky príchodzie emaily pre repa@dom.sk forwarduj na old@dom20.skSkrátka, aby som si tam mohol pridať v prípade potreby adresy. ALE zároveň potrebujem, aby nemohol ten "emailový server" nič iné robiť, t.j. všetko ostatné na ňom zakázať, aby nemohol byť zneužitý na spam. Poradíte mi veľmi jednoduchý návod na toto? (nemám skúsenosti s nastavovaním a zabezpečením "emailového" servra, ocenil by som preto názorný postu a príklad) Ďakujem pekne!
Řešení dotazu:
# TRUST AND RELAY CONTROL # The mynetworks parameter specifies the list of "trusted" SMTP # clients that have more privileges than "strangers". # # In particular, "trusted" SMTP clients are allowed to relay mail # through Postfix. See the smtpd_recipient_restrictions parameter # in postconf(5). # # You can specify the list of "trusted" network addresses by hand # or you can let Postfix do it for you (which is the default). # # By default (mynetworks_style = subnet), Postfix "trusts" SMTP # clients in the same IP subnetworks as the local machine. # On Linux, this does works correctly only with interfaces specified # with the "ifconfig" command. # # Specify "mynetworks_style = class" when Postfix should "trust" SMTP # clients in the same IP class A/B/C networks as the local machine. # Don't do this with a dialup site - it would cause Postfix to "trust" # your entire provider's network. Instead, specify an explicit # mynetworks list by hand, as described below. # # Specify "mynetworks_style = host" when Postfix should "trust" # only the local machine. # #mynetworks_style = class #mynetworks_style = subnet mynetworks_style = host
main.cf: virtual_alias_domains = domena1.sk domena3.sk dom.sk virtual_alias_maps = hash:/etc/postfix/virtual virtual: @domena1.sk ciel@domena2.sk @domena3.sk ciel@domena4.sk ujo@dom.sk new@dom20.sk repa@dom.sk old@dom20.sk
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.