Wietse Venema wrote:
Gregorics Tamas:
[ Charset UTF-8 unsupported, converting... ]
Hi,
I want to set up a relayhost for my local mail server, but for some reason
my postfix will not try to authenticate with the relay server.
I have these packages installed:
libsasl2
libsasl2-2
libsasl2-modules
main.cf
relayhost = mail.relay.host
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_cname_overrides_servername = no
sasl_password:
mail.relay.host u...@mail.relay.host:password
If I send a mail the relay server rejects it with a no relaying allowed
error. I checked it with tcpdump, and there is no authentication in the
outgoing smtp session.
With the same settings a different server can use the same relay server.
Any ideas?
Yes.
Instead of cut-and-paste main.cf, use "postconf -n" command output.
There is a reason why the mailing list instructions ask for this.
Sorry, here is the output:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = all
inet_protocols = ipv4
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 10485760
mydestination = ***.hu, debian.***.hu, localhost.***.hu, localhost
myhostname = ***.hu
mynetworks = 192.168.0.0/16, 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = mail.t-online.hu
smtp_data_xfer_timeout = 1000s
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_sasl_security_options = noanonymous
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_hard_error_limit = 10
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_hostname
smtpd_policy_service_max_idle = 900s
smtpd_policy_service_timeout = 240s
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination, reject_unauth_pipelining,
check_recipient_access hash:/etc/postfix/roleaccount_exceptions,
check_policy_service inet:127.0.0.1:12525
smtpd_sender_restrictions = reject_non_fqdn_sender,
reject_unknown_sender_domain
smtpd_soft_error_limit = 8
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes