Results 1 to 1 of 1
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
11-08-2016 #1Just Joined!
- Join Date
- Apr 2012
- Posts
- 3
Not receiving mail with postfix from external server
Hello guys,
I am not being able to receive mails in my local accounts, i can only send mails from multi local accounts (remote.A) to multi external accounts (A). I can send to every domain (e.g. gmail).
Till now after several tests, i notice that when i send mails without SMTP AUTH, i receive a message from my ISP mail server, saying that SMTP AUTH is activated and i must activated to pass through that server. If i try to send mail in the external server between accounts of my domain, i dont receive any mail in my local server. If i try to send mail in my local server between local accounts, i will receive mail locally, it will not pass through my external server as expected.
In my external server, i have cpanel, where i create external email accounts. There i have config email routing for the domain that i just want to use in my local mail server. I have set MX records with a secondary priority (in first i have the domain of my email by default). It is config as auto to deal with mail brought also by default(*). The secondary priority is a link (a subdomain of the email domain) for my static IP. I already search if i had my IP blocked and from a big list i only had 1 blocking me.
I have also configured SPF of my external server to auth sends from my local server.
(*)
Automatically Detect Configuration : (Local)
Mail Exchanger local
Mail Exchanger de backup
Mail Exchanger remote
This is a mx look up for my email domain in my external ISP:
431b10bb09ea44bea470d8868bf34033.png
Right now i have in my main.cf from local server Postfix this:
I have been trying to reroute received external mails to local accounts in my local server through virtual_alias_maps but i think thats not the problem right now, since i am unable to push mail from the external server. Received mail are being stack in that server.mydomain_fallback = localhost
message_size_limit = 0
biff = no
mynetworks_style = subnet # was only seen by localhost
mynetworks = 127.0.0.0/8, [::1]/128
#mynetworks = 127.0.0.0/8, 192.168.1.0/24
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
recipient_delimiter = +
smtpd_tls_ciphers = medium
inet_protocols = all
inet_interfaces = all
config_directory = /Library/Server/Mail/Config/postfix
virtual_alias_domains = $virtual_alias_maps
virtual_alias_maps = $virtual_maps
recipient_canonical_maps = hash:/Library/Server/Mail/Config/postfix/system_user_maps
smtpd_enforce_tls = no
smtpd_use_pw_server = yes
relayhost = [mail.X]:25
smtp_fallback_relay = [cpanel.Y]:25
smtpd_tls_cert_file = /etc/certificates/Server Fallback SSL Certificate.6D8408A85A861E9E7AE1A6CDE19A336CE8A4DB B0.cert.pem
mydomain = X.pt
smtpd_pw_server_security_options = cram-md5,digest-md5,gssapi
smtpd_sasl_auth_enable = yes
smtpd_helo_required = yes
smtpd_tls_CAfile = /etc/certificates/Server Fallback SSL Certificate.6D8408A85A861E9E7AE1A6CDE19A336CE8A4DB B0.chain.pem
content_filter = smtp-amavis:[127.0.0.1]:10024
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
header_checks = pcre:/Library/Server/Mail/Config/postfix/custom_header_checks
myhostname = remote.X.pt
smtpd_helo_restrictions = reject_non_fqdn_helo_hostname reject_invalid_helo_hostname
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/certificates/Server Fallback SSL Certificate.6D8408A85A861E9E7AE1A6CDE19A336CE8A4DB B0.key.pem
enable_server_options = yes
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, X.pt
mailbox_transport = dovecot
smtp_sasl_password_maps = hash:/Library/Server/Mail/Config/postfix/sasl/passwd
smtp_sasl_auth_enable = yes
######Edit######
smtp_sasl_security_options =
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/Library/Server/Mail/Config/postfix/relayhost/maps
relay_domains =
virtual_alias_maps = hash:/Library/Server/Mail/Config/postfix/virtual_domains
I think that i have made the correct steps with cpanel, but i dont have a clue on how can i set Postfix and Dovecot to receive/push mails from my external server. This is my first time trying to do this and i need some expert advise!
After looking at my external IP, i notice that i am unable to connect to it through telnet. After i add my server for port forwarding like this:
faf1f68d5d98470d9308346b05715635.png
I tried again to telnet at port 25 and i was able to connect, i have tried also to telnet from outside of my private network and was able to enter. I didnt expect that i could do this because i have set just to accept connections from my external server, so i disable it instantly. I have also notice that i didnt receive any mail while i was doing this test from an outside domain email to the domain that i am using. All my mail is being stack at my ISP mail server.
If you need more info i could provide it!


Reply With Quote