| Linode Forum https://forum.linode.com/ |
|
| make Imap work with postfix / dovecot https://forum.linode.com/viewtopic.php?f=11&t=4465 |
Page 1 of 1 |
| Author: | jcr [ Sun Aug 02, 2009 9:49 am ] |
| Post subject: | make Imap work with postfix / dovecot |
Hello, I set up a linode to be a mail server. Debian Lenny + postfix + dovecot + mysql + virtual mailboxes + Imap. A user wants to use his Mac's Mail application to get to his mails. Reading the mail works but sending emails does not. In the preferences of the Mail app, username and password are easy; the email account and its password. (1) But, what is the "server name"? (2) Can it be the default li103-217.members.linode.com? (3) Do I have to rename that fully-qualified hostname? (4) Assuming I own the domain example.com, could I user something like smtp.example.com? What kind of DNS entries should I make for that? Thanks |
|
| Author: | pclissold [ Sun Aug 02, 2009 12:10 pm ] |
| Post subject: | Re: make Imap work with postfix / dovecot |
jcr wrote: (1) But, what is the "server name"? Don't really understand the question. My version of Mail (3.6 - the current version) asks for Incoming Mail Server: (sounds like you have that set up OK) and Outgoing Mail Server (SMTP): - this need to be the name or IP address of an SMTP server. ![]() jcr wrote: (2) Can it be the default li103-217.members.linode.com? Yes - but it needs to match the 'mydomain =' and 'myhostname =' directives in the postfix main.cf file. jcr wrote: (3) Do I have to rename that fully-qualified hostname? Not necessarily - see (2). jcr wrote: (4) Assuming I own the domain example.com, could I user something like smtp.example.com? What kind of DNS entries should I make for that?
Yes. Code: smtp.example.com. 7200 IN A 97.107.142.217 |
|
| Author: | jcr [ Sun Aug 02, 2009 1:41 pm ] |
| Post subject: | |
Hi Peter, Thank for your help. Let me give a bit more of background. On the server, I have several domains (virtual_mailbox_domains is defined) and the incoming mail servers are: mail.example.com mail.foo.com ... All works very well, except for the sending email from a local app like Mail with IMAP. Ideally, the outgoing email servers would also be mail.example.com mail.foo.com with the appropriate email /password how could that work? In any case, I followed your advice and adjusted my main.cf file: I already had: myhostname = liXX-231.members.linode.com and I added mydomain = liXX-231.members.linode.com but that does not work any better. Thanks again! |
|
| Author: | hoopycat [ Sun Aug 02, 2009 3:15 pm ] |
| Post subject: | |
IMAP isn't involved in sending mail, so the title of this thread might be a little confusing. Mail is sent using SMTP, which puts it in the realm of Postfix. What happens when you try to send mail from a client? Any error messages? What shows up in Postfix's log file? |
|
| Author: | jcr [ Sun Aug 02, 2009 5:30 pm ] |
| Post subject: | |
The Mac's Mail app returns "The smtp server xxx is not responding..." When I ping that server, it seems responsive though |
|
| Author: | hoopycat [ Sun Aug 02, 2009 7:17 pm ] |
| Post subject: | |
If you do "netstat -nlp" on the server, where is postfix listening? (This will usually show up with "master" as the process name.) Which port is Mail.app trying to connect to? Can you successfully "telnet your.server 25" and/or "telnet your.server 587" from your Mac? |
|
| Author: | jcr [ Mon Aug 03, 2009 7:33 am ] |
| Post subject: | |
Hoopycat, I believe that postfix is listening to port 25. I am pasting the report below in case I am misreading it. That's interesting because doing: telnet server's ip 25 returns Operation timed out telnet: Unable to connect to remote host telnet server's ip 587 returns Connection refused telnet: Unable to connect to remote host Code: Active Internet connections (only servers) |
|
| Author: | saman007uk [ Mon Aug 03, 2009 7:57 am ] |
| Post subject: | |
Your ISP is blocking access to port 25, this is actually quite common. You can either configure Postfix to listen to an additional port (usually 587), or use one of the various tunelling methods. |
|
| Author: | jcr [ Mon Aug 03, 2009 8:53 am ] |
| Post subject: | |
(1) would that mean that if I were to connect to the Internet from another ISP who allows port 25 (maybe in a totally different country), I would actually be able to connect to that port 25? (2) I think I am going to open another port like 587 I added 587 inet n - n - - smtpd to my master.cf file [Is that enough?] and it works!!!! Thank you very much to all |
|
| Author: | mwalling [ Mon Aug 03, 2009 9:01 am ] |
| Post subject: | |
That commented chunk of code in master.cf talking about "submission" exists for a reason... |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|