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 email@example.com) sudo mail says - no new messages
Here if my full main.cf 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 = site.net mydomain = site.net 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
Sorry for my English :) Thanks.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!