Quote:
Originally Posted by cheesewizz
Hi All,
I established postfix as our mailserver
there are some users are permitted as local_only some are not
the problem i encountered was about the user that permitted to local_only
but those some user are able to recieve emails outside for example yahoo, hotmail and etc.
but they cannot send email in other domain for example yahoo, hotmail and etc. only on the domain was i set in main.cf
how can i block or reject emails in other domain when my email account is permitted to local_only
thanks
|
Please anyone can help me
kindly review my main.cf and please suggest what should I do
mydomain = tailinsubic-chatserver.com
myorigin = $mydomain
mydestination = $myhostname, $mydomain, localhost.localdomain, localhost
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access check_sender_access hash:/etc/postfix/restricted_senders permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_restriction_classes = local_only
local_only = check_recipient_access hash:/etc/postfix/local_domains, reject
mynetworks = 127.0.0.0/8,192.168.0.0/24
mailbox_size_limit = 0
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
relay_domains = $mydestination
relayhost =
smtpd_helo_required = yes
#smtpd_helo_restrictions = permit_mynetworks, reject_non_fqdn_hostname
#smtpd_recipient_restrictions = permit_mynetworks,
# email forwarder
#virtual_alias_domains = tailinsubic-chatserver.com
#virtual_alias_maps = hash:/etc/postfix/virtual
thanks