Problem with Email server (Postfix error)

  • Posted July 25, 2013

Hello. I tried to install posfix on my server to send and receive email. There were some problems with gmail messages getting into spam folder. I put MX and TXT records in DNS + installed SPF on server. Now i can send email with postfix ( dont know how, but after this no messages in spam folders) but still could not receive any ( for ex. from @gmail acc to my sudo mail says - no new messages

  • this is from maillog file postfix/smtpd[3316]: fatal: need service transport:endpoint instead of “check_policy_service” postfix/master[3313]: warning: process /usr/libexec/postfix/smtpd pid 3316 exit status 1 postfix/master[3313]: warning: /usr/libexec/postfix/smtpd: bad command startup – throttling

Here if my full file: queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix inet_interfaces = all inet_protocols = all mydestination = $myhostname, localhost.$mydomain, localhost unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases 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

sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.6.6/samples readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES myhostname = mydomain = smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_policy_service,check_policy_service unix:private/policy-spf policy_time_limit = 3600

I dont know why he didnt like this line: smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_policy_service,check_policy_service unix:private/policy-spf This is from SPF install FAQ

  • What i should do to make good Web-mail server for my users?

Sorry for my English :) Thanks.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Yes. I got bounced message: <br>The recipient server did not accept our requests to connect. Learn more at <br> [(0) [xx.xx.xx.xx]:25: Connection timed out]

Port 25 is not closed - I can access it: <br> <br><pre>telnet <small>yourdroplet’sIPaddress</small> 25</pre> <br> <br>I was able to connect successfully. Try sending an email again, does it bounce back? (you’ll get a delivery failed email if it did). <br> <br>Check /var/log/mail.err for errors. Do you find anything?

Yes. It seems that 25 is closed. <br>How i can open 25 and all other POP3 and IMAP ports on CentOS? <br>Only with iptables? What should i write there?

I see that port 25 is open on your droplet, try sending an email again. Does it work now?

“how to check firewall settings with allowed traffic on 25 port?” <br>From info: <br>DigitalOcean droplets usually come with the empty configuration: all traffic is allowed. <br>“No, it should be commented out.” <br>I already commented out this lane with “inet_interfaces = all” in it

<b>“This line should be inet_interfaces = localhost?”</b> <br>No, it should be commented out. <br> <br><b>“how to check firewall settings with allowed traffic on 25 port?”</b> <br>Check out <a href=“”>How to Setup a Firewall with UFW on an Ubuntu and Debian Cloud Server</a>

This line should be inet_interfaces = localhost? <br>I have - <br>inet_interfaces = all <br>and how to check firewall settings with allowed traffic on 25 port?

First check your firewall settings, and ensure that both inbound and outbound traffic is allowed on port 25. If you are still getting the error message, then open up <b>/etc/postfix/</b> and look for the following line: <br><code>inet_interfaces = localhost</code><br /> <br><br /> <br>and make sure it’s commented out.