| Linode Forum https://forum.linode.com/ |
|
| Can't receive email with citadel https://forum.linode.com/viewtopic.php?f=11&t=11703 |
Page 1 of 2 |
| Author: | Whale [ Mon Mar 30, 2015 9:51 am ] |
| Post subject: | Can't receive email with citadel |
Hi, i have installed citadel using the Linode guide in a subdomain (posta.mydomain.com), and set the MX records as follows: Code: posta.mydomain.com 10 Default so i have add posta.mydomain.com and mydomain.com with the subdomain posta.mydomain.com, instead smtp.secureserver.net and mailstore1.secureserver.net was already there as default (i have the domain with GoDaddy). In the citadel settings I have insert this: Code: Fully qualified domain name: mydomain.com I have created a new user on Citadel, piero@mydomain.com and I can send email, but i can't receive it, and the error that Google give me when i'm trying to send an email from my personal google account in response to piero@mydomain.com: Code: Delivery to the following recipient failed permanently: what can i do to fix the problem, i have maybe misconfigured citadel or mx record? |
|
| Author: | obs [ Mon Mar 30, 2015 11:33 am ] |
| Post subject: | Re: Can't receive email with citadel |
What's your real domain we can't check the MX records without it. |
|
| Author: | Whale [ Mon Mar 30, 2015 11:50 am ] |
| Post subject: | Re: Can't receive email with citadel |
sorry it's whaletrue.com |
|
| Author: | sweh [ Mon Mar 30, 2015 12:31 pm ] |
| Post subject: | Re: Can't receive email with citadel |
% telnet posta.whaletrue.com 25 Trying 109.74.198.44... And it hangs there. So it looks like you haven't opened any firewall rule to allow incoming port 25. Eventually the sending server will time out and move onto the next server, which is the secureserver.net machine, which is rejecting mail. So you need to allow incoming port 25 mail. You should probably also remove the secureserver stuff if they're not accepting mail for you. |
|
| Author: | obs [ Mon Mar 30, 2015 1:00 pm ] |
| Post subject: | Re: Can't receive email with citadel |
OK your MX records for whaletrue.com look like this Code: whaletrue.com. 600 IN MX 20 smtp.secureserver.net. Now from what you said your server is posta.whaletrue.com so you don't need the first two. posta.whaletrue.com points to 109.74.198.44 which is a Linode IP however I can't connect to port 25 on that IP so either it's firewalled off, the smtp server isn't running or it's the wrong IP. If 109.74.198.44 is the correct IP ensure that a smtp server is running and check your firewall. You can check what's listening using Code: sudo netstat -lpntand you can check the firewall using Code: sudo iptables -L -n -v |
|
| Author: | Whale [ Mon Mar 30, 2015 1:18 pm ] |
| Post subject: | Re: Can't receive email with citadel |
sweh wrote: % telnet posta.whaletrue.com 25 Trying 109.74.198.44... And it hangs there. So it looks like you haven't opened any firewall rule to allow incoming port 25. Eventually the sending server will time out and move onto the next server, which is the secureserver.net machine, which is rejecting mail. So you need to allow incoming port 25 mail. You should probably also remove the secureserver stuff if they're not accepting mail for you. Thanks for your answer, to open the port 25 i have do this: Code: sudo nano /etc/iptables.firewall.rules i have add this rule: Code: # Allows SMTP access i have apply the new rules using the following command: Code: sudo iptables-restore < /etc/iptables.firewall.rules then this command Code: sudo iptables -Lgive me this: Code: ACCEPT tcp -- anywhere anywhere tcp dpt:smtp then i have do this: Code: iptables-save > /etc/iptables.firewall.rules so i can't understand why is not reachable, i don't know if it's useful but i have checked this file: Code: sudo tail /var/log/mail.err and this is the log: Code: Mar 30 19:00:54 whaletrue citserver[8883]: No external notifiers configured on system/user |
|
| Author: | sweh [ Mon Mar 30, 2015 11:27 pm ] |
| Post subject: | Re: Can't receive email with citadel |
Whale wrote: then this command Code: sudo iptables -Lgive me this: Code: ACCEPT tcp -- anywhere anywhere tcp dpt:smtp That is not the complete output of the command. Other stuff is missing. I still can not access that SMTP port on 109.74.198.44 (nor any of the other ports). Your firewall config is not correct. But because you're not showing the complete output we can not diagnose the problem. |
|
| Author: | Whale [ Tue Mar 31, 2015 9:05 am ] |
| Post subject: | Re: Can't receive email with citadel |
thanks for all your answers, before i hadn't mention that i have two server with one domain, the first server has my website in which i have whaletrue.com domain and reverse DNS, inside the second server (109.74.198.44) i have installed citadel connected with posta.whaletrue.com, so in my DNS Manager i have created an A record that point posta.whaletrue.com to 109.74.198.44, i don't think that this is the problem but I still wanted to write it for clarity. Now if i use the command Code: sudo netstat -lpnton 109.74.198.44 this is the complete result: Code: Active Internet connections (only servers) and the command Code: sudo iptables -L -n -vgive me this: Code: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) i hope this help to solve my problem, thanks. |
|
| Author: | sweh [ Tue Mar 31, 2015 9:27 am ] |
| Post subject: | Re: Can't receive email with citadel |
This line 839 56275 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 It's there before the "allow SMTP, allow POP3" rules and so it's blocking all the traffic to those ports. Order of rules is important in iptables. Make sure your "allow" rules are before this "drop" rule. |
|
| Author: | Whale [ Tue Mar 31, 2015 9:42 am ] |
| Post subject: | Re: Can't receive email with citadel |
You save my day! Thank you soo much, i have a couple more question: 1) If my mail server where i have installed citadel i down, what happen at the messages? 2) Releated to the question above, if the messages are lost, there is a way to recover it, or to avoid this problem (i don't know maybe install citadel also on my first server) |
|
| Author: | sweh [ Tue Mar 31, 2015 10:04 am ] |
| Post subject: | Re: Can't receive email with citadel |
With your original configuration of 2nd an 3rd MX, when people can't reach your first server then the sender will try the second. That would reject your message and so the person who sent the mail would get an error. So make sure your MX records are accurate and remove the bad ones. If you only have 1 server and your server is down then the sender will _normally_ queue the message and retry over a period of time. Eventually the sender will give up and send an error back to the person who sent the mail. What that timeout is depends on the sending server; it's typically over a day but really busy servers could bring that value down to hours. |
|
| Author: | Whale [ Tue Mar 31, 2015 10:14 am ] |
| Post subject: | Re: Can't receive email with citadel |
Ok, thank you i will remove them soon, if i need a backup mail server (to avoid the problem of the timeout, if the server goes down for more than one day) there is a way to send this email to the backup mail server (that will be my first server with waletrue.com domain) and retrieve them when main mail server return on? |
|
| Author: | sweh [ Tue Mar 31, 2015 12:08 pm ] |
| Post subject: | Re: Can't receive email with citadel |
You have a second server with a really long queue time. So if the primary goes away it will all queue up on the second server. THen when the primary comes back the secondary will forward on the mail in its queue. |
|
| Author: | Whale [ Wed Apr 01, 2015 9:11 am ] |
| Post subject: | Re: Can't receive email with citadel |
sweh wrote: You have a second server with a really long queue time. So if the primary goes away it will all queue up on the second server. THen when the primary comes back the secondary will forward on the mail in its queue. Thanks for the answer, i haven't installed any backup mail server yet on whaletrue.com, if i install it, how i can set a long queue time and the forward to the new server? You know maybe a tutorial? Thanks |
|
| Author: | sweh [ Wed Apr 01, 2015 9:27 am ] |
| Post subject: | Re: Can't receive email with citadel |
I have no idea how you would do this with Citadel. I don't use it. |
|
| Page 1 of 2 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|