Score:0

Cannot send mail using Citadel

jm flag

I've started playing around with a domain I bought, and right now I want to add a mail server to it. After googling around, Citadel seemed like the easiest to start with.

I've got a small Ubuntu (22.04.1 LTS) server on my home network behind a router which I used to install Citadel as a docker container, and used their exact command line for starting it (other than changing the location of the files, which I'm guessing shouldn't really affect anything). I've also added the MX DNS record that points to my server, and after opening port 25 in my router, I can now receive mail without any issues. I cannot, however, send any mails...

I've tried both through Citadels web interface and through my mail client (Outlook for now). The mails get added to the outbound SMTP queue, and vanish a minute or two later (which, as I've understood it, is how it's supposed to look). The mail never gets delivered though, and a few hours later I get a mail from Citadel which says:

A message you sent has not been delivered to some or all of its recipients.
Citadel will continue attempting delivery for five days.
The following addresses were undeliverable:
[email protected]: 421()

(and no, I'm not trying to send it to the actual address "[email protected]", names have been changed to protect the innocent). A few days later I get a similar "I'm giving up" mail from Citadel.

I've tried googling, but any helpful responses are lost in the sea of results relating to configuring servers in your mail client.

I've also added an SPF ("v=spf1 mx all", I changed "-all" to "all" to make sure it wasn't blocking anything) and a DMARC ("v=DMARC1;p=none;rua=mailto:[email protected];ruf=mailto:[email protected]") record in my DNS as recommended by a tool I found (MXToolBox), but adding those records changed nothing. I also don't get any of the error messages I was hoping to get by setting the return addresses in the DMARC record.

Have I missed anything obvious? Do I need to open any ports for sending mails the way I opened port 25 for incoming? I figured getting the mails to me would be the challenging part, but instead I run into a wall on something as "simple" as sending mails...

Also, if anyone knows where Citadel keeps the log files I'd appreciate it. I'm hoping there's something helpful in there, but I just haven't been able to find any files to go through.

gapsf avatar
ng flag
Have I missed anything obvious? It should have some configuration to allow send mail from ip or with authentication only. Mail logs that should say why mail not sent, proper PTR record.
gapsf avatar
ng flag
https://www.citadel.org/outbound_mail.html
Toll avatar
jm flag
Well, that was an obvious thing to miss, yeah. Can't believe I didn't find that page when I looked for it... Anyway, the issue seems to be my ISP blocking port 25 (I can resolve all hosts I tried to mail to, but can't actually open a telnet to any of them on port 25, including the one owned by my ISP). Darn.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.