Portál AbcLinuxu, 23. července 2025 18:06
etc/postfix/main.cf: smtpd_recipient_restrictions = ... check_recipient_access hash:/etc/postfix/access ... /etc/postfix/access: all@my.domain permit_mynetworks,reject
Děkuji za radu, ale bohužel to nepomohlo a stále můžu na nějaký alias (co si nastavím) odeslat email i z venkovní sítě. Moje nastavení main.cf je:
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#relocated_maps = hash:/etc/postfix/relocated
myhostname = mujnazev mydomain = mojedomena.cz
myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mojedomena1.cz, mojedomena2.cz, mojedomena3.cz
relayhost = mynetworks = 127.0.0.0/8, ... další IP
inet_interfaces = moje IP, 127.0.0.1
unknown_local_recipient_reject_code = 550
#initial_destination_concurency = 20
home_mailbox = Maildir/
mailbox_command = /usr/bin/maildrop -d ${USER}
mailbox_size_limit = 0
message_size_limit = 10971520
recipient_delimiter = +
inet_protocols = all
#smtpd_sasl_local_domain =
#smtpd_sasl_auth_enable = yes
#smtpd_sasl_security_options = noanonymous
#broken_sasl_auth_clients = yes
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient, check_policy_service inet:127.0.0.1:60000, check_recipient_access hash:/etc/postfix/access
...
v souboru access je: mujalias@mojedomena.cz permit_mynetworks,reject
Netuším proč. Díky za pomoc :)
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.