Okay, so I'm really new to using Linux, and I searched the forums, but most people seem to have trouble sending mail, not receiving it. When I send mail from the CLI, it gets delivered fine (from
travis@travishoward.net) But when I try to reply or mail to the server, I get this message back:
Code:
----- The following addresses had permanent fatal errors ----- <travis@travishoward.net>
(reason: 554 5.7.1 <travis@travishoward.net>: Relay access denied)
----- Transcript of session follows ----- ... while talking to travishoward.net.:
>>> DATA
<<< 554 5.7.1 <travis@travishoward.net>: Relay access denied
554 5.0.0 Service unavailable
<<< 554 5.5.1 Error: no valid recipients
I really wanted to start off with a simple bare bones mail installation, so I could understand what the heck I was doing. Unfortunately the only tutorials I found were fairly complex, So I have little understading of what the problem may be.
This Tutorial is what I used to set this up. Thanks in advance for taking a look at my issue!
Here is my postfix main.cf
Code:
travis@travish82server:/etc$ cat postfix/main.cf
myorigin = travishoward.net
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
append_dot_mydomain = no
readme_directory = no
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
myhostname = travish82server
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost =
mynetworks = 127.0.0.0/8, <CIDR Address Block e.g. 209.152.115.0/24>
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mynetworks_style = host
inet_protocols = all
local_recipient_maps =
mydestination =
delay_warning_time = 4h
unknown_local_recipient_reject_code = 450
maximal_queue_lifetime = 7d
minimal_backoff_time = 1000s
maximal_backoff_time = 8000s
smtp_helo_timeout = 60s
smtpd_recipient_limit = 16
smtpd_soft_error_limit = 3
smtpd_hard_error_limit = 12
alias_maps = hash:/etc/postfix/aliases alias_database = hash:/etc/postfix/aliases
virtual_mailbox_base = /var/spool/mail/virtual
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
home_mailbox = Maildir/
smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, permit
smtpd_sender_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit
smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsbl.njabl.org
smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, permit
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_delay_reject = yes
disable_vrfy_command = yes
mail.log
Code:
travis@travish82server:/etc$ cat /var/log/mail.log
Mar 21 16:08:12 travish82server postfix/smtpd[4914]: connect from sudnp799.[work].com[ip]
Mar 21 16:08:13 travish82server postfix/smtpd[4914]: NOQUEUE: reject: RCPT from sudnp799.qwest.com[ip]: 554 5.7.1 <travis@travishoward.net>: Relay access denied; from=<[my email]> to=<travis@travishoward.net> proto=ESMTP helo=<sudnp799.[work].com>
Mar 21 16:08:14 travish82server postfix/smtpd[4914]: disconnect from sudnp799.[work].com[ip]
Mar 21 16:10:37 travish82server postfix/pickup[4773]: B1DE5380040: uid=1000 from=<travis>
Mar 21 16:10:37 travish82server postfix/cleanup[4932]: B1DE5380040: message-id=<20110321211037.B1DE5380040@travish82server>
Mar 21 16:10:37 travish82server postfix/qmgr[1502]: B1DE5380040: from=<travis@travishoward.net>, size=348, nrcpt=1 (queue active)
Mar 21 16:10:38 travish82server postfix/smtp[4935]: B1DE5380040: to=<[my work email]>, relay=sudnp798.[work].com[ip]:25, delay=1.1, delays=0.17/0.03/0.46/0.46, dsn=2.0.0, status=sent (250 2.0.0 p2LLAcU3009325 Message accepted for delivery)
Mar 21 16:10:38 travish82server postfix/qmgr[1502]: B1DE5380040: removed
Mar 21 16:11:34 travish82server postfix/anvil[4916]: statistics: max connection rate 1/60s for (smtp:ip) at Mar 21 16:08:12
Mar 21 16:11:34 travish82server postfix/anvil[4916]: statistics: max connection count 1 for (smtp:ip) at Mar 21 16:08:12
Mar 21 16:11:34 travish82server postfix/anvil[4916]: statistics: max cache size 1 at Mar 21 16:08:12
Mar 21 16:15:47 travish82server postfix/smtpd[4946]: warning: ::1: address not listed for hostname localhost
Mar 21 16:15:47 travish82server postfix/smtpd[4946]: connect from unknown[::1]
Mar 21 16:19:04 travish82server postfix/smtpd[4946]: disconnect from unknown[::1]
Mar 21 16:22:24 travish82server postfix/anvil[4948]: statistics: max connection rate 1/60s for (smtp:::1) at Mar 21 16:15:47
Mar 21 16:22:24 travish82server postfix/anvil[4948]: statistics: max connection count 1 for (smtp:::1) at Mar 21 16:15:47
Mar 21 16:22:24 travish82server postfix/anvil[4948]: statistics: max cache size 1 at Mar 21 16:15:47