Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ehcp email sending, pop3, outlook
#1
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:
<code>nano /etc/postfix/master.cf

add on bottom of file:
<code>submission inet n - - - - smtpd

save and exit
then:
<code>/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.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#2
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=<double-bounce@server123>, 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=<postmaster@mydomainxxx.com>, orig_to=<postmaster>, 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 <di5qox5@maildi.com>: Temporary lookup failure; from=<strijkera@hotmail.com> to=<di5qox5@maildi.com> proto=ESMTP helo=<bay0-omc4-s27.bay0.hotmail.com>
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=<double-bounce@server123>, 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=<postmaster@mydomainxxx.com>, orig_to=<postmaster>, 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 <di7tej9@maildi.com>: Temporary lookup failure; from=<walpole3arabic@sindicat.net> to=<di7tej9@maildi.com> proto=ESMTP helo=<kfbmail01.kfb.corp>
Dec 16 23:38:07 server123 postfix/pickup[6798]: 1C738424DF: uid=33 from=<www-data>
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=<double-bounce@server123>, size=994, nrcpt=1 (queue active)
Dec 16 23:38:07 server123 postfix/qmgr[6799]: 1C738424DF: from=<www-data@mydomainxxx.com>, 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=<calin@mydomainxxx.com>, 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=<postmaster@mydomainxxx.com>, orig_to=<postmaster>, 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=<zamzamlab@zamzamlab.com>, 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 <djanym@zamzamlab.com>: Temporary lookup failure; from=<nick@westongraphics.net> to=<djanym@zamzamlab.com> proto=ESMTP helo=<relay.ihostexchange.net>
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=<double-bounce@server123>, 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=<postmaster@mydomainxxx.com>, orig_to=<postmaster>, relay=none, delay=0.11,
Reply
#3
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=<www-data@mydomainxxx.com>, size=530, nrcpt=2 (queue active)
Dec 16 23:58:26 server123 postfix/error[7875]: AAA4B425C8: to=<calin@mydomainxxx.com>, 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=<zamzamlab@mydomainxxx>, 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=<www-data@mydomainxxx.com>, 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=<uqujeeaq6822@ttnet.net.tr> to=<46bfb461.4020800@maildi.com> proto=ESMTP helo=<ttnet.net.tr>
Dec 16 23:58:32 server123 postfix/smtpd[7839]: disconnect from unknown[88.248.162.154]


Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#4
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:
<code>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:
<code>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:
<code>route add default gw (your router ip)


see you, selam

Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#5
ua alaikumu ssalam
route add default gw (your router ip)
router IP - is it my gateway IP? or it's my IP?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#6
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


Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#7
it is your gateway ip.

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


dont forget to restart your postfix:
<code>/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.



Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#8
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...

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#9
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=<datauser@mydomain.com>, 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 <di4seh5@maildi.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<kim@yahoo.com> to=<di4seh5@maildi.com> proto=ESMTP helo=<ciein.com>
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 <finance@maildi.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<avezoywisa1651@verizon.net> to=<finance@maildi.com> proto=ESMTP helo=<verizon.net>
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=<tihuw9340@odessa.ua> to=<46bfb425.2080607@maildi.com> proto=ESMTP helo=<odessa.ua>
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=<datauser>
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=<datauser@mydomain.com>, size=358, nrcpt=1 (queue active)
Dec 22 00:17:30 server123 postfix/virtual[11563]: 4043540603: to=<myuser@mydomain.com>, 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=<datauser@mydomain.com>, 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
Reply
#10
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

Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping