Solved

Cannot receive mail on postfix server

Posted on 2010-08-16
8
892 Views
Last Modified: 2013-11-10
I have a postfix server that cannot receive mail. I can send mail out using the webadmin interface but when I reply the email does not get delivered.
I had errors in the email log about "smtpd_recipient_restrictions": specify at least one working instance.." I changed the main.cf file to fix these (See attached) but now I am getting emails in the root mailbox like the code attached (Snippet ID=926721).

Hope this is clear, please let me know if I can provide any further information.
Thanks for any help.
Out: 220 my.server.com ESMTP Postfix (Debian/GNU)
 In:  EHLO external.server
 Out: 250-my.server.com
 Out: 250-PIPELINING
 Out: 250-SIZE 10240000
 Out: 250-VRFY
 Out: 250-ETRN
 Out: 250-ENHANCEDSTATUSCODES
 Out: 250-8BITMIME
 Out: 250 DSN
 In:  MAIL FROM:<personal@email.com> SIZE=2207
 Out: 250 2.1.0 Ok
 In:  RCPT TO:<me@my.server.com>
 Out: 451 4.3.5 Server configuration error
 In:  DATA
 Out: 554 5.5.1 Error: no valid recipients
 In:  QUIT
 Out: 221 2.0.0 Bye

Open in new window

// main.cf
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = $myhostname, localhost
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_command = 
mailbox_size_limit = 0
recipient_delimiter = +
append_dot_mydomain = no
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = 
	permit_mynetworks
	reject_unauth_destination
	check_relay_domains
smtpd_helo_required = yes
smtpd_helo_restrictions = 
	permit_mynetworks
	permit_sasl_authenticated
	reject_invalid_hostname
	reject_non_fqd_hostname
virtual_alias_maps = hash:/etc/postfix/virtual

Open in new window

0
Comment
Question by:kirkheaton25
  • 6
  • 2
8 Comments
 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
what is the setting for your local_recipient_maps?

try this:
Execute:
# grep warning: /the/maillog/file

See http://www.postfix.org/DEBUG_README.html#logging
0
 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
comments should go on their own lines, not at the end of a line.
smtpd_client_restrictions =
    # allow my networks
    permit_mynetworks
    # stuff that is here
    check_client_access hash:/etc/postfix/access
    # stuff that is here
    reject_unknown_client
    permit
0
 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
sorry, I should have read that a bit clearer. Rules are processed in order, so you may want to move the deny rule to the bottom.
smtpd_recipient_restrictions =
      permit_mynetworks
      check_relay_domains
        reject_unauth_destination

Also check your DNS response times as failure on the below 2 (with **) will also cause an error
smtpd_helo_restrictions =
      permit_mynetworks
      permit_sasl_authenticated
**      reject_invalid_hostname
**      reject_non_fqd_hostname
0
 
LVL 1

Author Comment

by:kirkheaton25
Comment Utility
Thanks, I am getting the following warnings -unknown smtpd restriction: "reject_non_fqd_hostname".
How would I check the DNS response times?
0
Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

 
LVL 9

Accepted Solution

by:
Barry Gill earned 500 total points
Comment Utility
FQD = FQDN
fully qualified domain name
0
 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
sorry - even I missed that one :)
0
 
LVL 1

Author Closing Comment

by:kirkheaton25
Comment Utility
Yep, that's me feeling pretty foolish! Many thanks, it's all working now.
0
 
LVL 9

Expert Comment

by:Barry Gill
Comment Utility
lol, me too, but an easy mistake to make :)

remember the saying that if all the letters are there your mind will fill in the rest... so it looked complete, thank goodness for log files :)
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Microsoft Outlook is not just an email client but it is full featured Personal Information Manager. But sometimes Outlook gets disconnected and you simply can’t access it. What steps can you perform before calling IT support? In this article we will…
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now