Configure Smtp mailjet with zpanel cento 6

April 9, 2013 9.3k 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 for:
mydestination =,

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,, or the name of my domain?

anyway I'm going to check both alternatives! thanks a lot!
no, it doesn't work...
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.

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