Mail server problem (SSL, SMTP)

My server has only 1 IP.

I’ve created a virtual server for dddd.com.
Enable features except “SSL website enabled?” & IP-based virtual FTP enabled?"

Created an e-mail account kubo@dddd.com.
Login name should be “kubo@dddd.com

I tried to setup e-mail account on iMac’s mail.
Problem #1:
It required a certificate for mail server
I’ve try to check "“SSL website enabled?” & SLL cert created.
I don’t know if it solved the problem. (problem #2 still exist)
BUT i can’t enable SSL website for another virtual server …
how can i solved the problem for the mail service of all the domain names?

+Imconing Mail Server:
Account Type: POP
Incoming Mail server: mail.dddd.com
Username: kubo@dddd.com
password: (correct)
no SSL

+Outgoing Mail Server
Outgoing Mail Server: mail.dddd.com
Use Authentication: checked
Username: kubo@dddd.com
password: (correct)
no SSL

Problem #2:
When i try to send mail, there’re an error that request me input the password.
I did it correctly, but i’t still prompt.
“Authentication: password” is selected
I can’t send out any e-mail.

I’ve spent hours on search this problems on web … no clue …
Please help me …

I tried to setup e-mail account on iMac’s mail. Problem #1: It required a certificate for mail server I’ve try to check "“SSL website enabled?” & SLL cert created. I don’t know if it solved the problem.

You may want to try going into Server Configuration -> Manage SSL Certificates, and click the “Copy to Postfix” button. That’ll make sure you have an SSL certificate setup in Postfix. Then, when configuring your email clients, you may want to try both port 465 and 587 – it’s possible that if one doesn’t work, the other will.

Problem #2: When i try to send mail, there’re an error that request me input the password. I did it correctly, but i’t still prompt. “Authentication: password” is selected I can’t send out any e-mail.

You may want to go into Edit Mail and FTP Users, and verify that the username is what you expect. Also, take a peek in your mail logs for any errors – that would be in /var/log/maillog or /var/log/mail.log, depending on your distro.

-Eric

Thank you for the reply

I’ve generate a SSL cert. with all my domains included.

Click on both “Copy to Postfix” & “Copy to Dovecot”

good news.
It passed the setup on Mail client (both incoming & outgoing with SSL ON)
trust my self-signed cert. twice for both incoming & outgoing mail server

Mail cen be sent now …
but never to the recipient …

I’ve check the maillog, and found:
Jun 15 11:11:02 serv1 postfix/smtp[13408]: E07613908282: to=XXX@gmail.com, relay=none, delay=209, delays=104/0.03/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.39.27]: Connection timed out)
I test with “telnet localhost 25”, “ehlo localhost”
It seems fine …

I don’t know if i missed some setting on webmin/virtualmin …

Howdy,

Well, it looks like Postfix on your server is having difficulty reaching port 25 on Gmail’s servers.

Is it possible that your ISP blocks outgoing port 25? That’s a common cause of that problem…

-Eric

I’ve try to check open port from here http://www.canyouseeme.org/

25, 110, 143, 443, 465 are opened.
587 is closed.

I’ve also try to test from another linux server

[root@fs3 ~]# telnet mail.myDoamin.com 25
Trying xxx.xxx.xxx.xxx…
Connected to mail.myDoamin.com (xxx.xxx.xxx.xxx).
Escape character is ‘^]’.
220 serv1.myDoamin.com ESMTP Postfix
helo mail.abc.com
250 serv1.myDoamin.com
mail from:kubo@abc.com
250 2.1.0 Ok
rcpt to:kubo@gmail.com
554 5.7.1 kubo@gmail.com: Relay access denied

It’s wrong settings on webmin?

Well, the problem isn’t that port 25 isn’t visible on your server… it’s that, while logged into your server, email doesn’t seem to be able to get out.

So, try logging into your server, and then telnet’ing to port 25 on another server – are you able to do that, or do you get a timeout or refused error?

-Eric

You’re correct.

I can’t “telnet otherserver.com 25”
Trying
telnet: connect to address : Connection timed out
telnet: Unable to connect to remote host: Connection timed out

May i know where would be the problem.

I’ve disable the firewall on webmin machine.