LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2011, 02:16 PM   #1
justforyou
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Rep: Reputation: Disabled
Problems with sendmail/webmin


Hi all,

So i just started a php/mysql site and everything is working fine got PHP working with mysql and apache and got it working.
Setup ssh and ftp.
Setup webmin.
So now i face a new problem named sendmail.
I need this for my members who register,so they get an confirmation email.

i use:

Sendmail version 8.14.5, config V10/Berkeley with Webmin.
Fedora 15

And i changed my /etc/sendmail/sendmail.mc to:

DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

removing the addr:127.0.0.1 thingy.

but still my sendmail mailq says:

FOR GMAIL:
Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com

AND HOTMAIL:

it still says sending and just sits there.

My Maillogs give this:

Code:
Oct 11 18:13:12 just4you sm-msp-queue[14014]: restarting /usr/sbin/sendmail due to signal
Oct 11 18:13:12 just4you sendmail[14021]: starting daemon (8.14.5): SMTP+queueing@01:00:00
Oct 11 18:13:12 just4you sm-msp-queue[14023]: starting daemon (8.14.5): queueing@01:00:00
Oct 11 18:15:50 just4you sendmail[14106]: starting daemon (8.14.5): SMTP+queueing@01:00:00
Oct 11 18:15:50 just4you sm-msp-queue[14114]: starting daemon (8.14.5): queueing@01:00:00
Oct 11 18:23:29 just4you sendmail[14268]: p9BGNR4O014268: from=root, size=14, class=0, nrcpts=1, msgid=<201110111623.p9BGNR4O014268@domain.com>, relay=root@localhost
Oct 11 18:23:29 just4you sendmail[14269]: p9BGNTjC014269: from=<root@domain.com>, size=316, class=0, nrcpts=1, msgid=<201110111623.p9BGNR4O014268@domain.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Oct 11 18:23:29 just4you sendmail[14268]: p9BGNR4O014268: to=SOMEADRES@gmail.com, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:00, mailer=relay, pri=30014, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p9BGNTjC014269 Message accepted for delivery)
Oct 11 18:33:29 just4you sendmail[14271]: p9BGNTjC014269: to=<SOMEADRES@gmail.com>, ctladdr=<root@domain.com> (0/0), delay=00:10:00, xdelay=00:10:00, mailer=esmtp, pri=120316, relay=alt4.gmail-smtp-in.l.google.com. [74.125.65.26], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Oct 11 18:45:27 just4you sendmail[14525]: starting daemon (8.14.5): SMTP+queueing@01:00:00
Oct 11 18:45:27 just4you sm-msp-queue[14533]: starting daemon (8.14.5): queueing@01:00:00
Oct 11 18:46:13 just4you sendmail[14551]: p9BGkDGB014551: from=root, size=14, class=0, nrcpts=1, msgid=<201110111646.p9BGkDGB014551@domain.com>, relay=root@localhost
Oct 11 18:46:14 just4you sendmail[14552]: p9BGkDb0014552: from=<root@domain.com>, size=316, class=0, nrcpts=1, msgid=<201110111646.p9BGkDGB014551@domain.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Oct 11 18:46:14 just4you sendmail[14551]: p9BGkDGB014551: to=SOMEADRES@gmail.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30014, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p9BGkDb0014552 Message accepted for delivery)
Oct 11 18:47:45 just4you sendmail[14573]: p9BGljgs014573: from=<aanmelden@domain.com>, size=956, class=0, nrcpts=1, msgid=<201110111647.p9BGljgs014573@domain.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Oct 11 18:55:27 just4you sendmail[14526]: p9BGNTjC014269: to=<SOMEADRES@gmail.com>, ctladdr=<root@domain.com> (0/0), delay=00:31:58, xdelay=00:10:00, mailer=esmtp, pri=210316, relay=alt4.gmail-smtp-in.l.google.com. [74.125.65.26], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Oct 11 18:56:14 just4you sendmail[14554]: p9BGkDb0014552: to=<SOMEADRES@gmail.com>, ctladdr=<root@domain.com> (0/0), delay=00:10:01, xdelay=00:10:00, mailer=esmtp, pri=120316, relay=alt4.gmail-smtp-in.l.google.com. [74.125.65.27], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Oct 11 19:55:33 just4you sendmail[14969]: p9BGkDb0014552: to=<SOMEADRES@gmail.com>, ctladdr=<root@domain.com> (0/0), delay=01:09:20, xdelay=00:10:01, mailer=esmtp, pri=210316, relay=alt4.gmail-smtp-in.l.google.com. [74.125.65.26], dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
Oct 11 19:55:33 just4you sendmail[14969]: p9BGNTjC014269: SYSERR(root): readqf: cannot open ./dfp9BGNTjC014269: No such file or directory
Oct 11 19:55:33 just4you sendmail[14969]: p9BGNTjC014269: to=<SOMEADRES@gmail.com>, ctladdr=<root@domain.com> (0/0), delay=01:32:04, xdelay=00:00:00, mailer=esmtp, pri=300316, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.
By now i think my host is blocking my port 25.

I hope i can do this without using the smart_host.
wouldn't it unhandy to use this because all outgoing mail is send by other recipient named the mail.domain.com?


I hope somebody can help me with this.

Thanks in Advance

Justforyou

Last edited by justforyou; 10-13-2011 at 12:06 PM.
 
Old 10-11-2011, 05:46 PM   #2
AuroraZero
Member
 
Registered: Oct 2009
Location: Michigan
Distribution: SlackWare 13.37, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 187

Rep: Reputation: 31
Try using port 1025 instead of 25 and see if it will go through.
 
Old 10-12-2011, 06:49 AM   #3
justforyou
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hi and thanks for replying :d

So i adjusted my iptables to let port 1025 pass.
I adjusted my router tp forward port 1025 to my local ip.
I adjusted sendmail.mc and rebuild sendmail.rf and restarted sendmail.
Did a portscan and port 1025 is open.

I flushed my mailq and got this:

Code:
Forcing the attempted delivery of 3 selected messages ..

Running /var/spool/mqueue/p9BGljgs014573 (sequence 1 of 3)
p9BGljgs014573: locked

Running /var/spool/mqueue/p9BGkDb0014552 (sequence 2 of 3)
<someadress@gmail.com>... Connecting to gmail-smtp-in.l.google.com. via esmtp...
<someadress@gmail.com>... Connecting to alt1.gmail-smtp-in.l.google.com. via esmtp...
<someadress@gmail.com>... Connecting to alt2.gmail-smtp-in.l.google.com. via esmtp...
<someadress@gmail.com>... Connecting to alt3.gmail-smtp-in.l.google.com. via esmtp...
<someadress@gmail.com>... Connecting to alt4.gmail-smtp-in.l.google.com. via esmtp...
<someadress@gmail.com>... Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com.

Running /var/spool/mqueue/p9BGNTjC014269 (sequence 3 of 3)
<someadress@gmail.com>... Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com
So not working either.

Last edited by justforyou; 10-12-2011 at 09:38 AM.
 
Old 10-12-2011, 01:31 PM   #4
AuroraZero
Member
 
Registered: Oct 2009
Location: Michigan
Distribution: SlackWare 13.37, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 187

Rep: Reputation: 31
Try to telnet into your box on port 1025 and see if you can. Try a different email address. Ping gmail and post the results of those.
 
Old 10-12-2011, 01:45 PM   #5
d3vrandom
Member
 
Registered: Jun 2006
Location: Karachi, Pakistan
Distribution: OpenSUSE, CentOS, Debian
Posts: 59

Rep: Reputation: 9
If your ISP is blocking ports then you should take the hint and stop hosting websites at home. Why not buy hosting? You can get a VPS with root access for $10-30 a month and it'll have a faster connection with no restrictions.
 
Old 10-13-2011, 12:02 PM   #6
justforyou
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
ok so i pinged gmail.com and got this:

Code:
[root@just4you justforyou]# ping gmail.com
PING gmail.com (74.125.79.19) 56(84) bytes of data.
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=1 ttl=55 time=20.3 ms
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=2 ttl=55 time=18.3 ms
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=3 ttl=55 time=15.5 ms
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=4 ttl=55 time=15.2 ms
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=5 ttl=55 time=15.4 ms
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=6 ttl=55 time=18.3 ms
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=7 ttl=55 time=16.3 ms
64 bytes from ey-in-f19.1e100.net (74.125.79.19): icmp_req=8 ttl=55 time=16.4 ms
^C
--- gmail.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7011ms
rtt min/avg/max/mdev = 15.253/16.995/20.345/1.700 ms
[root@just4you justforyou]#
Telnetting into the bocx also works.

Code:
220 just4you.com ESMTP Sendmail 8.14.5/8.14.5; Thu, 13 Oct 2011 17:55:45 +0200
Tryd hotmail and gmail.

Quote:
If your ISP is blocking ports then you should take the hint and stop hosting websites at home. Why not buy hosting? You can get a VPS with root access for $10-30 a month and it'll have a faster connection with no restrictions.
I got several hosting account's but in just a few days i am gonna get ftth 100/100, because i just moved and got fiber earlier to.
So i CAN host it at home.
Hosting accounts are easyer but i wanna understand!! this thing is driving me crazy...

Only thing not working for me is sendmail

Last edited by justforyou; 10-13-2011 at 12:03 PM.
 
Old 10-13-2011, 03:46 PM   #7
justforyou
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks for all the reply's, fixed it using postfix now

Again thanks for all the reply's
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure SENDMAIL with webmin juanb Linux - Software 1 09-10-2009 02:50 AM
webmin and sendmail visuelz Linux - Software 17 07-13-2003 12:06 AM
Sendmail and Webmin Tigger Linux - Newbie 2 05-28-2003 12:40 PM
Webmin/Sendmail/Linux7.3 Steinbacher Linux - General 2 10-11-2002 06:00 AM
Webmin / sendmail?!? pk21 Linux - General 0 08-20-2002 09:29 AM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration