Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-21-2011, 04:53 PM   #1
LQ Newbie
Registered: Mar 2011
Posts: 4

Rep: Reputation: 0
Can send but can't receive mail

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 But when I try to reply or mail to the server, I get this message back:
   ----- The following addresses had permanent fatal errors ----- <>
    (reason: 554 5.7.1 <>: Relay access denied)

   ----- Transcript of session follows ----- ... while talking to
>>> DATA
<<< 554 5.7.1 <>: 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
travis@travish82server:/etc$ cat postfix/
myorigin =
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
append_dot_mydomain = no
readme_directory = no
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 =, <CIDR Address Block e.g.>
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/
virtual_alias_maps = mysql:/etc/postfix/
virtual_mailbox_domains = mysql:/etc/postfix/
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, reject_rbl_client, reject_rbl_client
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
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[ip]: 554 5.7.1 <>: Relay access denied; from=<[my email]> to=<> 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=<>, 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

Last edited by travish82; 03-21-2011 at 04:58 PM.
Old 03-21-2011, 06:18 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
It's been a while that I last played w/ postfix, but I
think the problem might be with your "mynetworks"; postfix
thinks only loop-back is OK. Try adding some of your
actually networked addresses to that.

Old 03-22-2011, 09:59 AM   #3
LQ Newbie
Registered: Mar 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Okay, So I commented out the line because according to the postfix documentation:

mynetworks_style (default: subnet)
The method to generate the default value for the mynetworks parameter. This is the list of trusted networks for relay access control etc.
Specify "mynetworks_style = host" when Postfix should "trust" only the local machine.

I'm pretty sure that I don't need my server to trust anything but itself to relay mail

# mynetworks =, <CIDR Address Block e.g.>
mynetworks_style = host
Well.. I found out that I hadn't entered enough data into my MySQL DB. I needed to add an alias for my username. Apparently it needs an entry for each email that will be used.

Now I just have to figure out how to get my email client to be able to retrieve mail from the server.

Last edited by travish82; 03-22-2011 at 10:01 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Would like to set up a mail server on Suse sles 11 to send and receive mail tiburondelcaribe Linux - Newbie 2 09-11-2009 11:30 AM
Can send but no receive mail nad4 Linux - Server 9 06-26-2009 02:58 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration