Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My DBMail installation can finally receive mail, but from localhost only. I can do telnet localhost 24 and telnet localhost 143, login succesfully. I can also send mail from port 24 to one of my email accounts. But when I send a mail from another server, it will not be delivered to my email account. Good news: I don't receive a mail like E-mail is not delivered :). What can I do now?

share|improve this question
I suspect you mean port 25. That's where SMTP normally "lives". There's probably an option in your smtp server config like "relay_from", and if that's only set to, then you'll only be a local mail relay. You don't wanna set it to though, because then the world and his mother can relay mail through you, and you become part of the spam problem. Instead, you want to enable mail relay for authenticated SMTP connections, Usually done in postfix with cyrus-sasl. Dunno about Dbmail. – Tom O'Connor Apr 22 '11 at 11:07
Have you set MX records in the DNS-server? – Bart De Vos Apr 22 '11 at 11:16
No, I meant 24 (lmtp). 25 isn't working at all, and for now not so important. It's just the receiving part; I can't receive extern e-mails, just emails that are sent locally. – Kevin Apr 22 '11 at 11:23
Yes, 2 MX records. And some A record. But I noticed that all subdomains are pointing to this mailserver, but the main server is pointing to another server. – Kevin Apr 22 '11 at 11:24

If you send to port 24, you send directly to dbmail. Mails from outside will arrive on smtp-port 25. This means, you have to set a

virtual_transport = dbmail-lmtp:

directive in postfix's You also will need theese directives in

virtual_mailbox_domains = mysql:/etc/postfix/
virtual_mailbox_maps = mysql:/etc/postfix/
share|improve this answer
Ah ok, thanks :), did that, created those SQL files. I'm sure they will work well. But I still can't receive. Is there a way to test Postfix from external connections? – Kevin Apr 22 '11 at 11:30
telnet 25 – Bart De Vos Apr 22 '11 at 11:37
I normally fire mails to a server to debug and multital -f the syslog and mail.err of this mchine. Then you can precisely see, what happens, when the mail arrives. I guess it's a main.cgf typo at all. – ansi_lumen Apr 22 '11 at 12:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.