Unfortunately I believe I have had this issue once before, maybe about 2 years ago, but never documented the fix anywhere. I have a Dovecot, Postfix setup, running on FreeBSD 9.1.
The server can receive and send emails. Users are able to login and receive email to their email clients, roundcube can without any issues send email to locally hosted domains, and all other domains on the internet. The issue arrises with users using a mail client to send email. The server will accept their email if it is for a locally hosted domain, but will not, relay any mail to lets say gmail for example, or any other domain. Postfix simply will not accept the email from the user. This is all that is found in regards to those connections in the maillog:
Postconf output is as follows:
Have made many attempts at getting this squared away, and even compared the main.cf to that of another server I manage, and honestly cannot find the difference.
Hoping another set of eyes could shed some light onto what I am missing.
Thanx a bunch.
Murias
The server can receive and send emails. Users are able to login and receive email to their email clients, roundcube can without any issues send email to locally hosted domains, and all other domains on the internet. The issue arrises with users using a mail client to send email. The server will accept their email if it is for a locally hosted domain, but will not, relay any mail to lets say gmail for example, or any other domain. Postfix simply will not accept the email from the user. This is all that is found in regards to those connections in the maillog:
Code:
Feb 6 13:28:39 ogham postfix/smtpd[77982]: connect from 50-0-142-120.dsl.dynamic.sonic.net[50.0.142.120]
Feb 6 13:28:39 ogham postfix/smtpd[77982]: NOQUEUE: reject: RCPT from 50-0-142-120.dsl.dynamic.sonic.net[50.0.142.120]: 554 5.7.1 <murias.oceallagh@gmail.com>: Relay access denied; from=<dave@orangediesel.com> to=<murias.oceallagh@gmail.com> proto=ESMTP helo=<[192.168.1.101]>
Postconf output is as follows:
Code:
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8, 10.0.1.0/28
mynetworks_style = host
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
relay_domains = proxy:mysql:/usr/local/etc/postfix/mysql_relay_domains_maps.cf
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-xbl.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/ssl/postfix/smtpd.pem
smtpd_tls_cert_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_key_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
soft_bounce = no
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:125
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailboxes_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:125
Have made many attempts at getting this squared away, and even compared the main.cf to that of another server I manage, and honestly cannot find the difference.
Hoping another set of eyes could shed some light onto what I am missing.
Thanx a bunch.
Murias