J.P. Trosclair yazmış:


Tolga wrote:
On Mon, Dec 08, 2008 at 02:29:51PM -0600, J.P. Trosclair wrote:
Tolga wrote:
Hi,

When I try to send mail, I get 5.7.1 Relay access denied. Although I don't get this when I send mail with mutt, I am wondering if this is a Postfix issue. If not, can you redirect me?

Regards,
mto

Sounds like a postfix configuration issue. Are you using mutt on the same server postfix is running on or on a machine located in a network covered by postfix's mynetworks setting?

Please include the output of postconf -n in your reply.

Mutt is on the same server with postfix. Below is my postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
mydestination = ozses.net, localhost.net, , localhost
myhostname = ozses.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

Here (mynetworks) you will either want to add your local network or setup SMTP authentication (depends on your requirements) so that users not originating from localhost can relay mail through your server.

Quick example:
mynetworks = 127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, etc....

myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unknown_reverse_client_hostname, reject_unauth_pipelining, reject_non_fqdn_recipient, reject_rbl_client zen.spamhaus.org

I see you have permit_sasl_authenticated but I don't see any smtp auth specific settings other than this one.

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:${data_directory}/smtpd_scache
smtpd_use_tls = yes

Regards,
mto

J.P.

After you get done modifying these settings to suit your needs I suggest you go here and make sure you haven't opened up relaying to spammers and what not (just a safety measure):

http://www.abuse.net/relay.html


J.P.
Thank you all, it worked :)

Reply via email to