Current time: 11-27-2024, 01:11 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[solved] STMP port 25 DOWN
Author Message
lthh89vt Offline
Junior Member
*

Posts: 10
Joined: Aug 2010
Reputation: 0
Post: #1
[solved] STMP port 25 DOWN
Hi everyone,

I'm very new to ispcp, linux and trying to ispcp on my server. But I cannot turn port 25 (SMTP) on.
I played around with postfix, but still no answer.
Can anyone suggest me where I should start at?
I'm using Ubuntu 10.x 64 bits

Thanks,
(This post was last modified: 08-28-2010 09:37 PM by joximu.)
08-27-2010 03:39 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: STMP port 25 DOWN
/etc/init.d/postfix start

and then tail /var/log/mail.info
for the log...

/J
08-27-2010 04:31 PM
Visit this user's website Find all posts by this user
lthh89vt Offline
Junior Member
*

Posts: 10
Joined: Aug 2010
Reputation: 0
Post: #3
RE: STMP port 25 DOWN
I got this log, it's start ok. but port 25 still down in ISPCP. Can you help me with this?
Many thanks,\

Quote:root@melitgroup:~# /etc/init.d/postfix start
* Starting Postfix Mail Transport Agent postfix [ OK ]
root@melitgroup:~# tail /var/log/mail.info
Aug 27 16:52:34 melitgroup sm-mta[11336]: o7R6qYaO011336: lost input channel fro m melitgroup.com.local [127.0.0.1] to MTA-v4 after rcpt
Aug 27 16:52:34 melitgroup sm-mta[11336]: o7R6qYaO011336: from=<admin@melitgroup .com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=melitgroup.c om.local [127.0.0.1]
Aug 27 16:52:35 melitgroup sm-mta[11363]: o7R6qZLu011363: <admin@melitgroup.com> ... User unknown
Aug 27 16:52:35 melitgroup sm-mta[11363]: o7R6qZLu011363: lost input channel fro m melitgroup.com.local [127.0.0.1] to MTA-v4 after rcpt
Aug 27 16:52:35 melitgroup sm-mta[11363]: o7R6qZLu011363: from=<admin@melitgroup .com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=melitgroup.c om.local [127.0.0.1]
Aug 27 16:52:36 melitgroup sm-mta[11534]: o7R6qahn011534: <admin@melitgroup.com> ... User unknown
Aug 27 16:52:36 melitgroup sm-mta[11534]: o7R6qahn011534: lost input channel fro m melitgroup.com.local [127.0.0.1] to MTA-v4 after rcpt
Aug 27 16:52:36 melitgroup sm-mta[11534]: o7R6qahn011534: from=<admin@melitgroup .com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=melitgroup.c om.local [127.0.0.1]
Aug 27 19:22:41 melitgroup sm-mta[3365]: o7R9KT1q003365: melitgroup.com.local [1 27.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4
Aug 27 19:23:11 melitgroup postfix/master[11829]: fatal: bind 0.0.0.0 port 25: A ddress already in use
08-27-2010 07:25 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: STMP port 25 DOWN
Hi

Quote:Aug 27 19:23:11 melitgroup postfix/master[11829]: fatal: bind 0.0.0.0 port 25: A ddress already in use

this says that there is another program using the port 25.

and the other log entries show something like "sm-mta" which is running...

so - stop sm-mta and maybe uninstall it, then there should be no problem using postfix.

/J
08-27-2010 07:37 PM
Visit this user's website Find all posts by this user
lthh89vt Offline
Junior Member
*

Posts: 10
Joined: Aug 2010
Reputation: 0
Post: #5
RE: STMP port 25 DOWN
Hi,

Thanks for you help. But I cannot stop sm-mta (unknown job).
And
Quote:Aug 27 19:23:11 melitgroup postfix/master[11829]: fatal: bind 0.0.0.0 port 25: A ddress already in use

Is it used by bind?

Thanks,
Hi,
I stop sendmail and it's working,
But I only can send email but cannot receive any email.
Could you please also help me with this.
Regards
(This post was last modified: 08-27-2010 07:56 PM by lthh89vt.)
08-27-2010 07:43 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: STMP port 25 DOWN
no, in this case bin is only the term for "connecting the application to this ip/port"....

what do you get with

netstat -tlpn | grep ":25"

the end of the lines should show the pid of the running program which is bound to port 25.

ps aux | grep <the-pid>

try this and then you should get the software name. Hopefully...

I think it's a sort of sendmail....

maybe also "dpkg -l | grep mail" brings something...

/J
ah - yes, you wrote sendmail.

ok, you should uninstall sendmail....

"aptitude remove sendmail" (or similar... I don't know ubuntu...)

/J
(This post was last modified: 08-27-2010 10:20 PM by joximu.)
08-27-2010 10:19 PM
Visit this user's website Find all posts by this user
lthh89vt Offline
Junior Member
*

Posts: 10
Joined: Aug 2010
Reputation: 0
Post: #7
RE: STMP port 25 DOWN
Hi mate,

I done it. But I only can send mail, forwarder.
I cannot receive any emails. There are not error as well so I dont know how to fix it. Could you please tell me what I should check
08-28-2010 12:09 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: STMP port 25 DOWN
logs?
08-28-2010 12:48 AM
Visit this user's website Find all posts by this user
lthh89vt Offline
Junior Member
*

Posts: 10
Joined: Aug 2010
Reputation: 0
Post: #9
RE: STMP port 25 DOWN
Hi joximu,

I'm sorry, i'm very new to this so I don't know we need start with log. Here's my log
Quote:Aug 28 09:13:45 melitgroup postfix/smtpd[16252]: disconnect from cnl1.ientrynetw ork.net[66.28.139.229]
Aug 28 09:16:05 melitgroup postfix/smtpd[24223]: connect from mail-gx0-f182.goog le.com[209.85.161.182]
Aug 28 09:16:05 melitgroup postfix/trivial-rewrite[24226]: warning: do not list domain melitgroup.com in BOTH mydestination and virtual_mailbox_domains
Aug 28 09:16:07 melitgroup postfix/policyd-weight[7838]: decided action=PREPEND X-policyd-weight: using cached result; rate: -8.4; <client=209.85.161.182> <helo =mail-gx0-f182.google.com> <from=lthh89vt@gmail.com> <to=admin@melitgroup.com>; delay: 2s
Aug 28 09:16:07 melitgroup postfix/smtpd[24223]: warning: connect to 127.0.0.1:6 0000: Connection refused
Aug 28 09:16:07 melitgroup postfix/smtpd[24223]: warning: problem talking to ser ver 127.0.0.1:60000: Connection refused
Aug 28 09:16:08 melitgroup postfix/smtpd[24223]: warning: connect to 127.0.0.1:6 0000: Connection refused
Aug 28 09:16:08 melitgroup postfix/smtpd[24223]: warning: problem talking to ser ver 127.0.0.1:60000: Connection refused
Aug 28 09:16:08 melitgroup postfix/smtpd[24223]: NOQUEUE: reject: RCPT from mail -gx0-f182.google.com[209.85.161.182]: 451 4.3.5 Server configuration problem; fr om=<lthh89vt@gmail.com> to=<admin@melitgroup.com> proto=ESMTP helo=<mail-gx0-f18 2.google.com>
Aug 28 09:16:08 melitgroup postfix/smtpd[24223]: disconnect from mail-gx0-f182.g oogle.com[209.85.161.182]
It reject email from gmail
It cannot connect to port 60000 (postgrey default port). But I changed port of postgrey to 10023. It's not working with port 60000

Kind Regards,
This is what I got from netstat
[quote]
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 30212/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 7785/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 30212/master
tcp 0 0 127.0.0.1:12525 0.0.0.0:* LISTEN 7838/policyd-weight
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3562/apache2
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 30212/master
tcp 0 0 127.0.0.1:9876 0.0.0.0:* LISTEN 19854/ispcp_daemon
tcp 0 0 175.107.156.197:53 0.0.0.0:* LISTEN 3133/named
tcp 0 0 175.107.156.196:53 0.0.0.0:* LISTEN 3133/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 3133/named
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3836/proftpd: (acce
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 21836/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 30212/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 3133/named
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 18082/postgrey.pid
tcp6 0 0 :::110 :::* LISTEN 25838/couriertcpd
tcp6 0 0 :::143 :::* LISTEN 26017/couriertcpd
tcp6 0 0 :::53 :::* LISTEN 3133/named
tcp6 0 0 :::22 :::* LISTEN 21836/sshd
tcp6 0 0 ::1:953 :::* LISTEN 3133/named
tcp6 0 0 :::993 :::* LISTEN 26477/couriertcpd
tcp6 0 0 :::995 :::* LISTEN 27867/couriertcpd
[quote]
Many thanks,
(This post was last modified: 08-28-2010 09:28 AM by lthh89vt.)
08-28-2010 09:19 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: STMP port 25 DOWN
ok, if postgrey is on 10023 then you may change the port numbers in /etc/postfix/main.cf (and maybe master.cf???)

and the other thing:
"warning: do not list domain melitgroup.com in BOTH mydestination and virtual_mailbox_domains"

I'd change mydestination to something with a host - not only domain...

/J
08-28-2010 09:54 AM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)