Hi, you can view some info (not really relevant, IMO) about this post on the first post here: https://www.virtualmin.com/node/11477
You can throw at me technical stuff, don’t worry.
Basically, my problem is I couldn’t get postfix to send my emails via smtp when it was for a mail like “mymail@gmail.com”, stating it was invalid relaying.
Here’s a sample log line:
Sep 16 15:56:35 stock postfix/smtpd[26216]: NOQUEUE: reject: RCPT from XXX: 554 5.7.1 : Relay access denied; from= to= proto=ESMTP helo=<[XXX]>
The user exists and can be authenticated (though I never really got a password request for it), but I don’t believe that’s happening.
I tried activating SASL, but it would always get:
Sep 16 15:55:16 stock postfix/smtpd[25653]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Sep 16 15:55:16 stock postfix/smtpd[25653]: fatal: no SASL authentication mechanisms
And I couldn’t get out of there… if you can help me, I’d love it.
Anyway, I can only send emails through smtp now because I’ve got postfix as open-relay.
Here’s my main.cf
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
appending .domain is the MUA’s job.
append_dot_mydomain = no
Uncomment the next line to generate “delayed mail” warnings
#delay_warning_time = 4h
readme_directory = no
TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
information on enabling SSL in the smtp client.
myhostname = XXX
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = XXX
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_maps = hash:/etc/postfix/virtual
mailbox_command = /usr/bin/procmail
smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces reject_unknown_reverse_client_hostname permit_sasl_authenticated check_client_access hash:/etc/postfix/rbl_override permit defer_if_permit
As you can see, I have these two to allow “anything”: permit defer_if_permit
I’m using Dovecot + Postfix on Debian 5.
Let me know if you need anything else.
Thank you for your help.