ehcp email sending, pop3, outlook

Question:

Hi,
I have a fresh install of Ubuntu 8.04 Server where EHCP latest version was installed last week. Until today near everything is working fine. I have some apps not working and with errors like “Sys. Information” but I’ll discuss this problems later. For now I’m much more concerned with the e-mail server thing. The system can send and receive e-mails normally using Squirrel mail web interface, but when I try to configure an e-mail client like “Microsoft Office Outlook” I have a bunch of errors with the SMTP connection. I have tried everything that I found in your forums and help files with no results. I work with hosting in Windows Server environments since 1998 but with Linux I’m a complete newbie. I think that the problem could be with the SMTP port. In my last Windows 2003 server I had an arrangement that the SMTP used ports 25 and 587 because some ISPs here in Japan and other countries are blocking port 25 for spam reasons. I would like to try to do the same ar
rangement with Ubuntu but I don’t know how! What are the commands and where to look for in Ubuntu or EHCP? What I’ll have to do to configure Outlook? Where can I find in the system (or in EHCP) information about the “mail.domain.com”, “port numbers”, and all other stuff related to the mail server (postfix)…?

Regards,

Answer:
mail system name may be one of:
www.yourdomain.com
yourdomain.com
mail.yourdomain.com
as long as you host all in one server.

normally, port 25 is setup by default,
you need to test outlook connection using pop3, with ssl/tls settings,
try tls, ssl one by one in outlook.
Dont forget to include @domain.com in your email username.

as you mentioned, your ISP may block your port 25.
is your server located on a datacenter, or your home such as dsl ?

if your server in home/dsl, and if your isp blocks port 25 toward your server, then you are in trouble, you need to make your ip static, and ask your ISP to open port 25.

try also this:
open console, in linux,
open file using:
nano /etc/postfix/master.cf

add on bottom of file:
submission inet n - - - - smtpd

save and exit
then:
/etc/init.d/postfix restart

this way, your server will accept emails at port 587 rather than 25.
This may solve your problem.

Email things are hardest part of a hosting business.
in fact, it is not so hard, but, compared to other things, it is hardest. if you think, latest changes in ISP's regarding port 25/587, because of spam, email problems changes in time

on any subject, including email, debuggin your system may help you a lot in understanding and solving your problems. so, debug your system while dealing with email, as described in http://ehcp.net/?q=node/771

Good luck.

Forums: 

Assalamu alaikum, ahi.
I have the same problem: my ISP is blocking 25 port. But I have a static IP. That's my syslog:
Dec 16 23:37:46 server123 postfix/qmgr[6799]: 32169424DA: from=, size=1290, nrcpt=1 (queue active)
Dec 16 23:37:46 server123 postfix/smtpd[7005]: disconnect from relay.ihostexchange.net[66.46.182.51]
Dec 16 23:37:46 server123 postfix/error[6836]: 32169424DA: to=, orig_to=, relay=none, delay=0.13, delays=0.08/0/0/0.05, dsn=4.3.0, status=deferred (address resolver failure)
Dec 16 23:38:00 server123 postfix/smtpd[6843]: connect from bay0-omc4-s27.bay0.hotmail.com[65.54.190.229]
Dec 16 23:38:00 server123 postfix/smtpd[6843]: NOQUEUE: reject: RCPT from bay0-omc4-s27.bay0.hotmail.com[65.54.190.229]: 451 4.3.0 : Temporary lookup failure; from= to= proto=ESMTP helo=
Dec 16 23:38:01 server123 postfix/proxymap[7025]: warning: connect to mysql server 127.0.0.1: Access denied for user 'ehcp'@'localhost' (using password: YES)
Dec 16 23:38:01 server123 postfix/cleanup[6846]: 35A9D424DC: message-id=<20091216213801.35A9D424DC@server123>
Dec 16 23:38:01 server123 postfix/qmgr[6799]: 35A9D424DC: from=, size=1021, nrcpt=1 (queue active)
Dec 16 23:38:01 server123 postfix/smtpd[6843]: disconnect from bay0-omc4-s27.bay0.hotmail.com[65.54.190.229]
Dec 16 23:38:01 server123 postfix/error[6897]: 35A9D424DC: to=, orig_to=, relay=none, delay=0.17, delays=0.1/0/0/0.08, dsn=4.3.0, status=deferred (address resolver failure)
Dec 16 23:38:05 server123 postfix/smtpd[7005]: warning: 213.181.163.170: address not listed for hostname mail.kfbgroup.com.sa
Dec 16 23:38:05 server123 postfix/smtpd[7005]: connect from unknown[213.181.163.170]
Dec 16 23:38:06 server123 postfix/trivial-rewrite[7024]: warning: transport_maps lookup failure
Dec 16 23:38:06 server123 postfix/trivial-rewrite[7024]: warning: transport_maps lookup failure
Dec 16 23:38:06 server123 postfix/smtpd[7005]: NOQUEUE: reject: RCPT from unknown[213.181.163.170]: 451 4.3.0 : Temporary lookup failure; from= to= proto=ESMTP helo=
Dec 16 23:38:07 server123 postfix/pickup[6798]: 1C738424DF: uid=33 from=
Dec 16 23:38:07 server123 postfix/cleanup[6846]: 1C738424DF: message-id=<20091216213807.1C738424DF@server123>
Dec 16 23:38:07 server123 postfix/cleanup[7030]: 1FF93424E0: message-id=<20091216213807.1FF93424E0@server123>
Dec 16 23:38:07 server123 postfix/smtpd[6843]: connect from relay.ihostexchange.net[66.46.182.52]
Dec 16 23:38:07 server123 postfix/qmgr[6799]: 1FF93424E0: from=, size=994, nrcpt=1 (queue active)
Dec 16 23:38:07 server123 postfix/qmgr[6799]: 1C738424DF: from=, size=517, nrcpt=2 (queue active)
Dec 16 23:38:07 server123 postfix/smtpd[7005]: disconnect from unknown[213.181.163.170]
Dec 16 23:38:07 server123 postfix/trivial-rewrite[7024]: warning: transport_maps lookup failure
Dec 16 23:38:07 server123 postfix/trivial-rewrite[7024]: warning: transport_maps lookup failure
Dec 16 23:38:07 server123 postfix/error[6897]: 1C738424DF: to=, relay=none, delay=0.33, delays=0.21/0/0/0.12, dsn=4.3.0, status=deferred (address resolver failure)
Dec 16 23:38:07 server123 postfix/error[6808]: 1FF93424E0: to=, orig_to=, relay=none, delay=0.31, delays=0.14/0.02/0/0.15, dsn=4.3.0, status=deferred (address resolver failure)
Dec 16 23:38:07 server123 postfix/error[6897]: 1C738424DF: to=, relay=none, delay=0.4, delays=0.21/0/0/0.19, dsn=4.3.0, status=deferred (address resolver failure)
Dec 16 23:38:07 server123 postfix/smtpd[6843]: setting up TLS connection from relay.ihostexchange.net[66.46.182.52]
Dec 16 23:38:07 server123 postfix/smtpd[6843]: Anonymous TLS connection established from relay.ihostexchange.net[66.46.182.52]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 16 23:38:08 server123 postfix/smtpd[6843]: NOQUEUE: reject: RCPT from relay.ihostexchange.net[66.46.182.52]: 451 4.3.0 : Temporary lookup failure; from= to= proto=ESMTP helo=
Dec 16 23:38:08 server123 postfix/cleanup[6846]: 498FD424E2: message-id=<20091216213808.498FD424E2@server123>
Dec 16 23:38:08 server123 postfix/qmgr[6799]: 498FD424E2: from=, size=1290, nrcpt=1 (queue active)
Dec 16 23:38:08 server123 postfix/smtpd[6843]: disconnect from relay.ihostexchange.net[66.46.182.52]
Dec 16 23:38:08 server123 postfix/trivial-rewrite[7024]: warning: transport_maps lookup failure
Dec 16 23:38:08 server123 postfix/error[6899]: 498FD424E2: to=, orig_to=, relay=none, delay=0.11, delays=0.05/0/0/0.06, dsn=4.3.0, status=deferred (address resolver failure)
Dec 16 23:38:10 server123 postfix/smtpd[7005]: connect from mail.altinbasbilgisayar.com[213.243.5.100]
Dec 16 23:38:10 server123 postfix/smtpd[7005]: setting up TLS connection from mail.altinbasbilgisayar.com[213.243.5.100]
Dec 16 23:38:10 server123 postfix/smtpd[7005]: Anonymous TLS connection established from mail.altinbasbilgisayar.com[213.243.5.100]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 16 23:38:10 server123 postfix/smtpd[7005]: NOQUEUE: reject: RCPT from mail.altinbasbilgisayar.com[213.243.5.100]: 451 4.3.0 : Temporary lookup failure; from= to= proto=ESMTP helo=
Dec 16 23:38:10 server123 postfix/cleanup[7030]: BAF4D424E4: message-id=<20091216213810.BAF4D424E4@server123>
Dec 16 23:38:10 server123 postfix/qmgr[6799]: BAF4D424E4: from=, size=1305, nrcpt=1 (queue active)
Dec 16 23:38:10 server123 postfix/smtpd[7005]: disconnect from mail.altinbasbilgisayar.com[213.243.5.100]
Dec 16 23:38:10 server123 postfix/error[6814]: BAF4D424E4: to=, orig_to=, relay=none, delay=0.11, delays=0.06/0/0/0.05, dsn=4.3.0, status=deferred (address resolver failure)

---------

Any clues?

I have made ehcp gui->options->fix mail configuration
and syslog is:
Dec 16 23:58:26 server123 postfix/cleanup[7897]: AAA4B425C8: message-id=<20091216215826.AAA4B425C8@server123>
Dec 16 23:58:26 server123 postfix/qmgr[7456]: AAA4B425C8: from=, size=530, nrcpt=2 (queue active)
Dec 16 23:58:26 server123 postfix/error[7875]: AAA4B425C8: to=, relay=none, delay=0.3, delays=0.19/0/0/0.1, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to ASPMX4.GOOGLEMAIL.com[209.85.219.5]:25: No route to host)
Dec 16 23:58:26 server123 postfix/virtual[8078]: AAA4B425C8: to=, relay=virtual, delay=0.31, delays=0.19/0.03/0/0.09, dsn=5.1.1, status=bounced (unknown user: "zamzamlab@mydomainxxx")
Dec 16 23:58:26 server123 postfix/cleanup[7897]: E18AA425CA: message-id=<20091216215826.E18AA425CA@server123>
Dec 16 23:58:26 server123 postfix/qmgr[7456]: E18AA425CA: from=<>, size=2231, nrcpt=1 (queue active)
Dec 16 23:58:27 server123 postfix/bounce[7896]: AAA4B425C8: sender non-delivery notification: E18AA425CA
Dec 16 23:58:27 server123 postfix/error[7890]: E18AA425CA: to=, relay=none, delay=0.14, delays=0.08/0/0/0.06, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to ASPMX4.GOOGLEMAIL.com[209.85.219.5]:25: No route to host)
Dec 16 23:58:31 server123 postfix/smtpd[7839]: warning: 88.248.162.154: hostname dsl88-248-41626.ttnet.net.tr verification failed: No address associated with hostname
Dec 16 23:58:31 server123 postfix/smtpd[7839]: connect from unknown[88.248.162.154]
Dec 16 23:58:31 server123 postfix/smtpd[7839]: setting up TLS connection from unknown[88.248.162.154]
Dec 16 23:58:31 server123 postfix/smtpd[7839]: Anonymous TLS connection established from unknown[88.248.162.154]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 16 23:58:32 server123 postfix/smtpd[7839]: NOQUEUE: reject: RCPT from unknown[88.248.162.154]: 550 5.1.1 <46bfb461.4020800@maildi.com>: Recipient address rejected: User unknown in virtual mailbox table; from= to=<46bfb461.4020800@maildi.com> proto=ESMTP helo=
Dec 16 23:58:32 server123 postfix/smtpd[7839]: disconnect from unknown[88.248.162.154]

by doing ehcp gui->options->fix mail config, you did fix many of "access denied errors"

Now, you have a new problem: "no route to host."
That may be beacuse of routing problem of your server, or your network (little possibility of your isp)

on your server console, type: route -n
you should see an output like:
root@ikinciserver:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
96.31.91.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 96.31.91.1 0.0.0.0 UG 100 0 0 eth0

as you see, you should have a default route like:
0.0.0.0 96.31.91.1 0.0.0.0 UG 100 0 0 eth0

if not,
you need to add on your server:
route add default gw (your router ip)

see you, selam

ua alaikumu ssalam
route add default gw (your router ip)
router IP - is it my gateway IP? or it's my IP?

it is your gateway ip.

on your server, you should be able to, for example,
ping google.com

dont forget to restart your postfix:
/etc/init.d/postfix restart

"no route" error is a network error, you have problem in network settings of your server.
if you fix that (as i described above), everything seems to work ok.

by the way, your "route -n" output seems fine, ok.
your default gw is defined. somehow, if you still cannot ping google.com, then you have something wrong, maybe in your router or your isp.

see you, selam.

ua alaikumu ssalam ua rahmatu-Llahi ua barakatuh.

I can ping google.com. It's working. As I said the my ISP is blocking 25 port...
I have uncommented submission line in postfix conf and no success...

This is my log:

ve)
Dec 22 00:12:16 server123 postfix/bounce[11543]: 9C88340603: sender non-delivery notification: C7F2340604
Dec 22 00:12:16 server123 postfix/qmgr[11784]: 9C88340603: removed
Dec 22 00:12:16 server123 postfix/virtual[11542]: C7F2340604: to=, relay=virtual, delay=0.13, delays=0.08/0/0/0.05, dsn=5.1.1, status=bounced (unknown user: "datauser@mydomain.com")
Dec 22 00:12:16 server123 postfix/qmgr[11784]: C7F2340604: removed
Dec 22 00:14:22 server123 postfix/smtpd[11544]: connect from unknown[121.52.216.245]
Dec 22 00:14:23 server123 postfix/smtpd[11544]: NOQUEUE: reject: RCPT from unknown[121.52.216.245]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:14:24 server123 postfix/smtpd[11544]: disconnect from unknown[121.52.216.245]
Dec 22 00:15:36 server123 postfix/smtpd[11544]: connect from pool-173-57-147-230.dllstx.fios.verizon.net[173.57.147.230]
Dec 22 00:15:36 server123 postfix/smtpd[11544]: setting up TLS connection from pool-173-57-147-230.dllstx.fios.verizon.net[173.57.147.230]
Dec 22 00:15:42 server123 postfix/smtpd[11544]: Anonymous TLS connection established from pool-173-57-147-230.dllstx.fios.verizon.net[173.57.147.230]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:15:43 server123 postfix/smtpd[11544]: NOQUEUE: reject: RCPT from pool-173-57-147-230.dllstx.fios.verizon.net[173.57.147.230]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:15:43 server123 postfix/smtpd[11544]: disconnect from pool-173-57-147-230.dllstx.fios.verizon.net[173.57.147.230]
Dec 22 00:16:42 server123 postfix/smtpd[11544]: connect from 212-178-23-89.broadband.tenet.odessa.ua[212.178.23.89]
Dec 22 00:16:42 server123 postfix/smtpd[11544]: setting up TLS connection from 212-178-23-89.broadband.tenet.odessa.ua[212.178.23.89]
Dec 22 00:16:42 server123 postfix/smtpd[11544]: Anonymous TLS connection established from 212-178-23-89.broadband.tenet.odessa.ua[212.178.23.89]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:16:42 server123 postfix/smtpd[11544]: NOQUEUE: reject: RCPT from 212-178-23-89.broadband.tenet.odessa.ua[212.178.23.89]: 550 5.1.1 <46bfb425.2080607@maildi.com>: Recipient address rejected: User unknown in virtual mailbox table; from= to=<46bfb425.2080607@maildi.com> proto=ESMTP helo=
Dec 22 00:16:43 server123 postfix/smtpd[11544]: disconnect from 212-178-23-89.broadband.tenet.odessa.ua[212.178.23.89]
Dec 22 00:17:01 server123 CRON[11555]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Dec 22 00:17:05 server123 named[1126]: success resolving 'vcs1.msg.yahoo.com/A' (in 'yahoo.com'?) after reducing the advertised EDNS UDP packet size to 512 octets
Dec 22 00:17:05 server123 postfix/smtpd[11544]: connect from 121-73-143-216.cable.telstraclear.net[121.73.143.216]
Dec 22 00:17:06 server123 postfix/smtpd[11544]: disconnect from 121-73-143-216.cable.telstraclear.net[121.73.143.216]
Dec 22 00:17:11 server123 named[1126]: success resolving 'vcs2.msg.vip.ac4.yahoo.com/A' (in 'ac4.yahoo.com'?) after disabling EDNS
Dec 22 00:17:11 server123 named[1126]: success resolving 'vcs1.msg.vip.sp1.yahoo.com/A' (in 'sp1.yahoo.com'?) after disabling EDNS
Dec 22 00:17:30 server123 postfix/pickup[11526]: 4043540603: uid=33 from=
Dec 22 00:17:30 server123 postfix/cleanup[11560]: 4043540603: message-id=<20091221221730.4043540603@server123>
Dec 22 00:17:30 server123 postfix/qmgr[11784]: 4043540603: from=, size=358, nrcpt=1 (queue active)
Dec 22 00:17:30 server123 postfix/virtual[11563]: 4043540603: to=, relay=virtual, delay=0.26, delays=0.16/0.01/0/0.09, dsn=5.1.1, status=bounced (unknown user: "myuser@mydomain.com")
Dec 22 00:17:30 server123 postfix/cleanup[11560]: 6FAD540604: message-id=<20091221221730.6FAD540604@server123>
Dec 22 00:17:30 server123 postfix/qmgr[11784]: 6FAD540604: from=<>, size=2039, nrcpt=1 (queue active)
Dec 22 00:17:30 server123 postfix/bounce[11564]: 4043540603: sender non-delivery notification: 6FAD540604
Dec 22 00:17:30 server123 postfix/qmgr[11784]: 4043540603: removed
Dec 22 00:17:30 server123 postfix/virtual[11563]: 6FAD540604: to=, relay=virtual, delay=0.16, delays=0.09/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "datauser@mydomain.com")
Dec 22 00:17:30 server123 postfix/qmgr[11784]: 6FAD540604: removed
Dec 22 00:17:41 server123 named[1126]: success resolving 'mrim.mail.ru/A' (in 'mail.ru'?) after reducing the advertised EDNS UDP packet size to 512 octets
Dec 22 00:17:41 server123 named[1126]: success resolving 'talk.l.google.com/A' (in 'google.com'?) after reducing the advertised EDNS UDP packet size to 512 octets
Dec 22 00:17:43 server123 named[1126]: success resolving 'messenger.hotmail.msnmessenger.msn.com.akadns.net/A' (in 'akadns.net'?) after reducing the advertised EDNS UDP packet size to 512 octets
Dec 22 00:17:52 server123 named[1126]: success resolving 'dns-02.icq.net/AAAA' (in 'icq.net'?) after disabling EDNS
Dec 22 00:17:53 server123 named[1126]: success resolving 'dns-01.icq.net/AAAA' (in 'icq.net'?) after disabling EDNS
Dec 22 00:17:54 server123 named[1126]: success resolving 'dns-02.icq.net/AAAA' (in 'icq.net'?) after disabling EDNS
Dec 22 00:17:58 server123 named[1126]: success resolving 'dns-01.icq.net/AAAA' (in 'icq.net'?) after disabling EDNS
Dec 22 00:18:04 server123 named[1126]: success resolving 'login.icq.com/A' (in 'icq.com'?) after disabling EDNS
Dec 22 00:18:33 server123 postfix/smtpd[11544]: warning: 77.30.77.25: hostname 77.30.77.25.dynamic.saudi.net.sa verification failed: No address associated with hostname
Dec 22 00:18:33 server123 postfix/smtpd[11544]: connect from unknown[77.30.77.25]
Dec 22 00:18:33 server123 postfix/smtpd[11544]: setting up TLS connection from unknown[77.30.77.25]
Dec 22 00:18:34 server123 postfix/smtpd[11544]: Anonymous TLS connection established from unknown[77.30.77.25]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:18:34 server123 postfix/smtpd[11544]: NOQUEUE: reject: RCPT from unknown[77.30.77.25]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:18:34 server123 postfix/smtpd[11544]: disconnect from unknown[77.30.77.25]
Dec 22 00:18:49 server123 postfix/smtpd[11544]: connect from 173-30-188-199.client.mchsi.com[173.30.188.199]
Dec 22 00:18:49 server123 postfix/smtpd[11567]: connect from 173-30-188-199.client.mchsi.com[173.30.188.199]
Dec 22 00:18:49 server123 postfix/smtpd[11544]: setting up TLS connection from 173-30-188-199.client.mchsi.com[173.30.188.199]
Dec 22 00:18:49 server123 postfix/smtpd[11567]: setting up TLS connection from 173-30-188-199.client.mchsi.com[173.30.188.199]
Dec 22 00:18:50 server123 postfix/smtpd[11544]: Anonymous TLS connection established from 173-30-188-199.client.mchsi.com[173.30.188.199]: TLSv1 with cipher AES128-SHA (128/128 bits)
Dec 22 00:18:50 server123 postfix/smtpd[11567]: Anonymous TLS connection established from 173-30-188-199.client.mchsi.com[173.30.188.199]: TLSv1 with cipher AES128-SHA (128/128 bits)
Dec 22 00:18:50 server123 postfix/smtpd[11544]: NOQUEUE: reject: RCPT from 173-30-188-199.client.mchsi.com[173.30.188.199]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:18:50 server123 postfix/smtpd[11567]: NOQUEUE: reject: RCPT from 173-30-188-199.client.mchsi.com[173.30.188.199]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:18:50 server123 postfix/smtpd[11544]: disconnect from 173-30-188-199.client.mchsi.com[173.30.188.199]
Dec 22 00:18:50 server123 postfix/smtpd[11567]: disconnect from 173-30-188-199.client.mchsi.com[173.30.188.199]
Dec 22 00:19:13 server123 postfix/smtpd[11567]: connect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11544]: connect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11570]: connect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11571]: connect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11567]: setting up TLS connection from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11544]: setting up TLS connection from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11570]: setting up TLS connection from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11571]: setting up TLS connection from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11572]: connect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11573]: connect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:13 server123 postfix/smtpd[11574]: connect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11567]: Anonymous TLS connection established from 207.76.broadband2.iol.cz[83.208.76.207]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:19:14 server123 postfix/smtpd[11572]: setting up TLS connection from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11544]: Anonymous TLS connection established from 207.76.broadband2.iol.cz[83.208.76.207]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:19:14 server123 postfix/smtpd[11573]: setting up TLS connection from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11570]: Anonymous TLS connection established from 207.76.broadband2.iol.cz[83.208.76.207]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:19:14 server123 postfix/smtpd[11571]: Anonymous TLS connection established from 207.76.broadband2.iol.cz[83.208.76.207]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:19:14 server123 postfix/smtpd[11574]: setting up TLS connection from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11572]: Anonymous TLS connection established from 207.76.broadband2.iol.cz[83.208.76.207]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:19:14 server123 postfix/smtpd[11567]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11573]: Anonymous TLS connection established from 207.76.broadband2.iol.cz[83.208.76.207]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:19:14 server123 postfix/smtpd[11574]: Anonymous TLS connection established from 207.76.broadband2.iol.cz[83.208.76.207]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Dec 22 00:19:14 server123 postfix/smtpd[11544]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11570]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11571]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11572]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11567]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11573]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11544]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11574]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11570]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11571]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11544]: disconnect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11574]: disconnect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11570]: disconnect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11571]: disconnect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11572]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11567]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11573]: NOQUEUE: reject: RCPT from 207.76.broadband2.iol.cz[83.208.76.207]: 550 5.1.1 : Recipient address rejected: User unknown in virtual mailbox table; from= to= proto=ESMTP helo=
Dec 22 00:19:14 server123 postfix/smtpd[11572]: disconnect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11567]: disconnect from 207.76.broadband2.iol.cz[83.208.76.207]
Dec 22 00:19:14 server123 postfix/smtpd[11573]: disconnect from 207.76.broadband2.iol.cz[83.208.76.207]

Dec 22 00:33:01 server123 postfix/pickup[11526]: 14F854060A: uid=33 from=
Dec 22 00:33:01 server123 postfix/cleanup[11634]: 14F854060A: message-id=<20091221223301.14F854060A@server123>
Dec 22 00:33:01 server123 postfix/qmgr[11784]: 14F854060A: from=, size=356, nrcpt=1 (queue active)
Dec 22 00:33:01 server123 postfix/smtp[11626]: connect to gmail-smtp-in.l.google.com[209.85.219.30]:25: No route to host
Dec 22 00:33:04 server123 postfix/smtp[11626]: connect to alt1.gmail-smtp-in.l.google.com[209.85.220.8]:25: No route to host
Dec 22 00:33:07 server123 postfix/smtp[11626]: connect to alt2.gmail-smtp-in.l.google.com[209.85.218.18]:25: No route to host
Dec 22 00:33:10 server123 postfix/smtp[11626]: connect to alt3.gmail-smtp-in.l.google.com[209.85.223.99]:25: No route to host
Dec 22 00:33:13 server123 postfix/smtp[11626]: connect to alt4.gmail-smtp-in.l.google.com[209.85.210.67]:25: No route to host
Dec 22 00:33:13 server123 postfix/smtp[11626]: 14F854060A: to=, relay=none, delay=12, delays=0.15/0/12/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.210.67]:25: No route to host)

-------------------------------------

Maybe it's trying to connect via 25 port?
Any suggestion?

also I have this:
telnet XX.XX.32.182
Trying XX.XX.32.182...
telnet: Unable to connect to remote host: Connection refused

XX.XX.32.182 - it's my IP

telnet is an old service, and turned off by default.
it is normal that you cannot connect to your server using telnet.

instead, use ssh yourip..

are you stil unable to use your emails?

see you, selam

as I see, you stil have "No route to host" problem.
you are stil not able to connect to gmail ip's..

check this on your server:
tracepath www.ehcp.net
traceroute www.ehcp.net
tracepath 96.31.91.67
traceroute 96.31.91.67
ping 96.31.91.67
ping www.ehcp.net

what you see?
if you see a success, if you are able to see some results, then the problem becomes very interesting..

may your isp block gmail ips ?

That is my tracepath:
$ tracepath www.ehcp.net
1: www.domainname.com (XX.XX.32.182) 0.225ms pmtu 1500
1: XX-XX-32-1.starnet.md (XX.XX.32.1) 2.230ms
1: XX-XX-32-1.starnet.md (XX.XX.32.1) 1.296ms
2: XX-XX-3-65.starnet.md (XX.XX.3.65) 1.651ms
3: no reply
4: no reply
5: no reply
6: no reply
7: no reply
8: no reply
9: no reply
10: no reply
11: no reply
12: no reply
13: 38.104.150.70 (38.104.150.70) 154.286ms asymm 16
14: 38.104.150.70 (38.104.150.70) 154.633ms asymm 16
15: 96.31.91.67 (96.31.91.67) 156.799ms reached
Resume: pmtu 1500 hops 15 back 45

Why www.domainname.com is XX.XX.32.182 (my IP)?
------
That is my traceroute:
~$ traceroute www.ehcp.net
traceroute to www.ehcp.net (96.31.91.67), 30 hops max, 60 byte packets
1 XX-XX-32-1.starnet.md (XX.XX.32.1) 0.665 ms 0.896 ms 1.197 ms
2 XX-XX-3-65.starnet.md (XX.XX.3.65) 0.727 ms 0.783 ms 0.778 ms
3 te1-3.ccr01.buh01.atlas.cogentco.com (149.5.168.33) 9.574 ms 9.584 ms 9.633 ms
4 te4-8.ccr01.bts01.atlas.cogentco.com (130.117.1.77) 29.998 ms te2-3.ccr01.tsr01.atlas.cogentco.com (130.117.49.142) 18.789 ms te2-1.ccr01.tsr01.atlas.cogentco.com (130.117.49.138) 18.790 ms
5 te2-3.ccr01.bud01.atlas.cogentco.com (130.117.0.17) 25.208 ms 25.086 ms 25.218 ms
6 te2-2.ccr02.fra03.atlas.cogentco.com (130.117.0.217) 37.946 ms te3-2.ccr01.bts01.atlas.cogentco.com (130.117.49.146) 30.063 ms te8-8.ccr02.fra03.atlas.cogentco.com (130.117.50.245) 41.459 ms
7 te3-2.ccr01.par01.atlas.cogentco.com (130.117.2.54) 50.502 ms te3-7.ccr02.par01.atlas.cogentco.com (130.117.2.138) 48.458 ms te8-7.ccr01.muc01.atlas.cogentco.com (130.117.48.173) 39.461 ms
8 te8-8.ccr02.fra03.atlas.cogentco.com (130.117.50.245) 44.886 ms te3-2.ccr01.par01.atlas.cogentco.com (130.117.2.54) 52.509 ms te7-1.ccr01.iad01.atlas.cogentco.com (154.54.27.93) 128.322 ms
9 te1-2.ccr01.fra03.atlas.cogentco.com (130.117.0.73) 49.867 ms 50.217 ms te2-1.ccr01.str01.atlas.cogentco.com (130.117.0.174) 45.963 ms
10 te7-2.ccr02.atl01.atlas.cogentco.com (154.54.28.222) 146.416 ms te2-2.ccr01.par01.atlas.cogentco.com (130.117.2.14) 56.085 ms te7-7.ccr01.par01.atlas.cogentco.com (130.117.0.30) 55.970 ms
11 te3-2.ccr01.jax01.atlas.cogentco.com (154.54.30.26) 145.537 ms te4-2.ccr01.atl01.atlas.cogentco.com (154.54.28.237) 146.579 ms te3-1.ccr01.atl01.atlas.cogentco.com (154.54.28.202) 144.669 ms
12 te7-1.ccr01.iad01.atlas.cogentco.com (154.54.27.93) 132.305 ms te8-1.ccr01.atl01.atlas.cogentco.com (154.54.2.45) 150.034 ms te8-2.ccr01.dca01.atlas.cogentco.com (154.54.2.49) 134.947 ms
13 te4-2.ccr01.atl01.atlas.cogentco.com (154.54.28.237) 150.264 ms te4-2.ccr01.jax01.atlas.cogentco.com (154.54.29.130) 152.701 ms 38.104.150.70 (38.104.150.70) 153.685 ms
14 te4-3.ccr01.tpa01.atlas.cogentco.com (154.54.29.138) 159.420 ms te4-2.ccr01.jax01.atlas.cogentco.com (154.54.29.130) 152.757 ms 152.895 ms
15 te4-3.ccr01.tpa01.atlas.cogentco.com (154.54.29.138) 159.402 ms tr2.core01.hivelocity.net (69.46.31.102) 156.554 ms 157.349 ms
16 96.31.91.67 (96.31.91.67) 155.983 ms tr2.core01.hivelocity.net (69.46.31.102) 160.336 ms 96.31.91.67 (96.31.91.67) 154.241 ms

-------------

~$ tracepath 96.31.91.67
1: www.domainname.com (XX.XX.32.182) 0.249ms pmtu 1500
1: XX-XX-32-1.starnet.md (XX.XX.32.1) 2.617ms
1: XX-XX-32-1.starnet.md (XX.XX.32.1) 1.003ms
2: XX-XX-3-65.starnet.md (XX.XX.3.65) 2.484ms
3: no reply
4: no reply
5: no reply
6: no reply
7: no reply
8: no reply
9: no reply
10: no reply
11: no reply
12: no reply
13: no reply
14: no reply
15: no reply
16: tr2.core01.hivelocity.net (69.46.31.102) 160.329ms asymm 17
17: tr2.core01.hivelocity.net (69.46.31.102) 165.072ms
18: 96.31.91.67 (96.31.91.67) 155.236ms reached
Resume: pmtu 1500 hops 18 back 45

-------

~$ traceroute 96.31.91.67
traceroute to 96.31.91.67 (96.31.91.67), 30 hops max, 60 byte packets
1 XX-XX-32-1.starnet.md (XX.XX.32.1) 1.800 ms 2.017 ms 2.272 ms
2 XX-XX-3-65.starnet.md (XX.XX.3.65) 0.716 ms 0.772 ms 0.834 ms
3 te1-3.ccr01.buh01.atlas.cogentco.com (149.5.168.33) 9.608 ms 9.606 ms 9.590 ms
4 130.117.51.18 (130.117.51.18) 28.255 ms 28.276 ms 28.254 ms
5 te3-1.ccr01.muc01.atlas.cogentco.com (130.117.3.137) 34.210 ms te2-3.ccr01.bud01.atlas.cogentco.com (130.117.0.17) 24.966 ms te1-2.ccr01.bud01.atlas.cogentco.com (130.117.48.57) 25.048 ms
6 te3-2.ccr01.bts01.atlas.cogentco.com (130.117.49.146) 29.766 ms te1-1.ccr01.str01.atlas.cogentco.com (130.117.3.77) 37.224 ms te8-8.ccr02.fra03.atlas.cogentco.com (130.117.50.245) 41.528 ms
7 te4-3.ccr01.fra03.atlas.cogentco.com (130.117.50.249) 43.670 ms te1-2.ccr01.fra03.atlas.cogentco.com (130.117.0.73) 48.413 ms te2-7.ccr01.muc01.atlas.cogentco.com (130.117.0.42) 36.068 ms
8 te2-1.ccr01.str01.atlas.cogentco.com (130.117.0.174) 42.455 ms te2-2.ccr01.fra03.atlas.cogentco.com (130.117.0.65) 45.469 ms te7-1.ccr01.iad01.atlas.cogentco.com (154.54.27.93) 128.922 ms
9 te7-2.ccr02.dca01.atlas.cogentco.com (154.54.7.157) 129.430 ms te7-1.ccr01.iad01.atlas.cogentco.com (154.54.27.93) 130.991 ms te1-2.ccr01.fra03.atlas.cogentco.com (130.117.0.73) 50.336 ms
10 te7-1.ccr01.iad01.atlas.cogentco.com (154.54.27.93) 131.002 ms te8-2.ccr01.dca01.atlas.cogentco.com (154.54.2.49) 131.103 ms te7-2.ccr02.dca01.atlas.cogentco.com (154.54.7.157) 129.480 ms
11 te8-2.ccr02.dca01.atlas.cogentco.com (154.54.7.161) 134.284 ms te8-2.ccr01.dca01.atlas.cogentco.com (154.54.2.49) 134.486 ms te4-2.ccr01.jax01.atlas.cogentco.com (154.54.29.130) 150.853 ms
12 te8-2.ccr01.dca01.atlas.cogentco.com (154.54.2.49) 134.486 ms te4-3.ccr01.tpa01.atlas.cogentco.com (154.54.29.138) 155.925 ms te8-2.ccr01.dca01.atlas.cogentco.com (154.54.2.49) 134.450 ms
13 te4-7.ccr02.atl01.atlas.cogentco.com (154.54.7.209) 146.408 ms 38.104.150.70 (38.104.150.70) 156.343 ms 156.071 ms
14 te4-3.ccr01.tpa01.atlas.cogentco.com (154.54.29.138) 159.175 ms 38.104.150.70 (38.104.150.70) 154.251 ms te4-3.ccr01.tpa01.atlas.cogentco.com (154.54.29.138) 156.160 ms
15 te4-3.ccr01.tpa01.atlas.cogentco.com (154.54.29.138) 159.227 ms 159.077 ms 38.104.150.70 (38.104.150.70) 157.522 ms
16 96.31.91.67 (96.31.91.67) 156.322 ms 153.859 ms tr2.core01.hivelocity.net (69.46.31.102) 159.926 ms

----

~$ ping 96.31.91.67
PING 96.31.91.67 (96.31.91.67) 56(84) bytes of data.
64 bytes from 96.31.91.67: icmp_seq=1 ttl=45 time=156 ms
64 bytes from 96.31.91.67: icmp_seq=2 ttl=45 time=156 ms
64 bytes from 96.31.91.67: icmp_seq=3 ttl=45 time=156 ms

----

~$ ping www.ehcp.net
PING ehcp.net (96.31.91.67) 56(84) bytes of data.
64 bytes from 96.31.91.67: icmp_seq=1 ttl=45 time=156 ms
64 bytes from 96.31.91.67: icmp_seq=2 ttl=45 time=156 ms
64 bytes from 96.31.91.67: icmp_seq=3 ttl=45 time=156 ms
64 bytes from 96.31.91.67: icmp_seq=4 ttl=45 time=156 ms

as I understand, your server is connected to internet and connect to outside world,
but, on your previous posts, i understand that, "no route to host" says your server cannot connect to google, gmail,

for example, if you run:
ping 209.85.223.99
traceroute 209.85.223.99

or
ping google.com
ping gmail.com

you will probably get error, or no reply..

This means that, unfortunately, your ISP blocked completely gmail ip addresses, in its routers,

to overcome, you need to request from them, ability to access gmail ip's...

How can I use another IP? Not google. Is there something like that?

the problem is not using another ip,
even if you use another server ip on your server,

if your isp blocks gmail ip's, then, your server will not be able to send emails to gmail.

This is not a good situation for your domains or hosting customers.
you cannot use another ip to connect to gmail, because you cannot determine the ip for gmail, gmail determines that ip.

did you test above?
please test these again:
ping 209.85.223.99
traceroute 209.85.223.99
ping google.com
ping gmail.com
echo "testing, this is me" | sendmail info@ehcp.net

if your server works normally, i will receive your email in last line..
(last echo and info@ehcp.net are on same line)

The ping goes normal. And you should get the email. Please check it.

But email sending still don't working...

I have it:
Destination Gateway Genmask Flags Metric Ref Use Iface
XX.XX.32.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 XX.XX.32.1 0.0.0.0 UG 100 0 0 eth0

Assalamu alaikum ua rahmatu-Llahi ua barakatuh.

I see in my logs: uspended: connect to ASPMX4.GOOGLEMAIL.com[209.85.219.5]:25: No route to host
There is 25 port, but I can use 25 port. How can I change SMTP port? For example to 465 (as it's in gmail).

smtp port is not 465,it is 25, and you cannot change it, and all server on world needs to speak through port 25, unless all are agree to change it.And, I dont think gmail uses 465 for smtp

so, your problem is not port,
your problem is "no route to host" error.
i described this before, maybe below.

Anyway, my ISP is blocking 25 port. So I can't send via 25 port. Is there any solution?

yes, there is a solution, above on top of this page, enable submission port in postifx configuration.

I say again, your problem is not only port 25, you get "no route to host" error. think about this..

see you, selam.

If you want to use port 587 as the submission port for SMTP mail rather than 25 (many ISPs block port 25), you will need to edit /etc/postfix/master.cf to uncomment the relevant line for port 587 there.