Configure Smtp mailjet with zpanel cento 6

April 9, 2013 6.7k views
Hi to everybody, i can´t make work mailjet (external smtp) in my droplet. I have centos 6.3 with Zpanel and everything works fine, even I can receive mails with no problems. I've configured dns & postfix like told me mailjet, and i've configures my smtp configuration in zpanel, (mail method, smtp server) but i can´t get anything... The error i've have in maillog is:"Relay access denied (in reply to RCPT TO command) " Any ideas? I'm desperate hehehehe Thanks in advance
6 Answers
Did you update postfix's main.cf for:
mydestination = domain1.com, domain2.com

With a list of domains for which you expect to receive email?
Hi Raiyu, no, this configuration is:

localhost.$mydomain, localhost

What do i need in this parameter, in.mailjet.com, or the name of my domain?

anyway I'm going to check both alternatives! thanks a lot!
the problem anyway it's no receiving, is sending mails through a external smtp (mailjet).
check the iptables (firewall)
Try this:
iptables -A INPUT -p tcp --dport 26 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 26 -j ACCEPT
we'll add in our redirect, which can be specified with the following line:
iptables -t nat -A PREROUTING -p tcp --dport 26 -j REDIRECT --to-port 25
If this does not work then verify there is only one entry for the redirect:
iptables -t nat -L
To remove the redirect tables:
iptables -t nat -F

telnet domain(mail server) 26
Have another answer? Share your knowledge.