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?
-
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 127.0.0.0/8, then you'll only be a local mail relay. You don't wanna set it to 0.0.0.0/8 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'ConnorApr 22, 2011 at 11:07
-
Have you set MX records in the DNS-server?– Bart De VosApr 22, 2011 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.– KevinApr 22, 2011 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.– KevinApr 22, 2011 at 11:24
Add a comment
|
1 Answer
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:127.0.0.1:24
directive in postfix's main.cf. You also will need theese directives in main.cf
virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/sql-virtual_mailbox_maps.cf
-
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?– KevinApr 22, 2011 at 11:30
-
-
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.– moestlyApr 22, 2011 at 12:29