Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 24th, 2004, 06:47 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
Sendmail II

Hello... 'tis I again

BerkeleyDB and Sendmail are both installed and presumably run correctly.

# /usr/sbin/sendmail -db -q30m
# tail /var/log/maillog
Feb 24 14:56:16 CorpraServ sendmail[30232]: starting daemon (8.12.11): queueing@00:30:00

Hopefully Postal Cow (and anyone else!) can help me with some questions I have about Sendmail configuration.

My first question/obsticle is trying to talk to sendmail through telnet:

# telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

How can I make sure sendmail is listening to port 25?

... And here's another question I figured I'd toss in; it just sort of peaked my interest.

I ran a process status with -Al flags. Note the difference between the Apache and Sendmail processes:

# ps -Al
FÂ*SÂ*Â*Â*UIDÂ*Â*Â*PIDÂ*Â*PPIDÂ*Â*CÂ*PRIÂ*Â*NIÂ*AD DRÂ*SZÂ*WCHANÂ*Â*TTYÂ*Â*Â*Â*Â*TIMEÂ*CMD
5Â*SÂ*Â*Â*Â*Â*0Â*Â*5023Â*Â*Â*Â*Â*1Â*Â*0Â*Â*69Â*Â*Â *0Â*-Â*Â*1317Â*selectÂ*?Â*Â*Â*00:00:00Â*httpd
5Â*SÂ*Â*Â*Â*99Â*Â*5024Â*Â*5023Â*Â*0Â*Â*69Â*Â*Â*0Â* -Â*Â*1337Â*wait_fÂ*?Â*Â*Â*00:00:00Â*httpd
1Â*SÂ*Â*Â*Â*Â*0Â*30552Â*Â*Â*Â*Â*1Â*Â*0Â*Â*70Â*Â*Â* 0Â*-Â*Â*Â*863Â*pauseÂ*Â*?Â*Â*Â*00:00:00Â*sendmail

Apache is waiting for connections... but Sendmail seems to be paused. Is this correct?

-Tim

Reply With Quote
  #2  
Old February 25th, 2004, 12:40 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Sendmail II

Your starting sendmail just from bash or are you using a startup script in rc.d?

Reply With Quote
  #3  
Old February 25th, 2004, 01:08 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Sendmail II

You can see if sendmail is listening by using netstat -l and looking for port 25.

Also, to connect to sendmail, you can:

telnet 127.0.0.1:25
i think, its either that or telnet 127.0.0.1 25

from there, you can end commands like the ehlo, etc etc.

Reply With Quote
  #4  
Old February 25th, 2004, 02:10 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Sendmail II

For now I'm starting sendmail from a bash prompt. I won't set up an rc script until I can get things working how I want them.

# netstat -l
ActiveÂ*InternetÂ*connections (only servers)
ProtoÂ*Recv-QÂ*Send-QÂ*LocalÂ*AddressÂ*ForeignÂ*AddressÂ*State
tcpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:timeÂ*Â*Â*Â*Â *Â*Â*Â*Â**:*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*LISTEN
tcpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:fingerÂ*Â*Â*Â *Â*Â*Â**:*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*LISTEN
tcpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:httpÂ*Â*Â*Â*Â *Â*Â*Â*Â**:*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*LISTEN
tcpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:authÂ*Â*Â*Â*Â *Â*Â*Â*Â**:*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*LISTEN
tcpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:ftpÂ*Â*Â*Â*Â* Â*Â*Â*Â*Â**:*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*LISTEN
tcpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:sshÂ*Â*Â*Â*Â* Â*Â*Â*Â*Â**:*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*LISTEN
udpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:biffÂ*Â*Â*Â*Â *Â*Â*Â*Â**:*
udpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:ntalkÂ*Â*Â*Â* Â*Â*Â*Â**:*
udpÂ*Â*Â*Â*Â*Â*Â*Â*0Â*Â*Â*Â*Â*Â*0Â**:timeÂ*Â*Â*Â*Â *Â*Â*Â*Â**:*
Active UNIX domain sockets (only servers)
ProtoÂ*RefCntÂ*FlagsÂ*Â*Â*Â*Â*TypeÂ*Â*Â*Â*Â*State *Â*Â*Â*Â*I-NodeÂ*Path
unixÂ*Â*2Â*Â*Â*Â*Â*Â*[Â*ACCÂ*]Â*Â*Â*STREAMÂ*Â*Â*LISTENINGÂ*329Â*Â*Â*Â*/dev/gpmctl

Sendmail doesn't even seem to be listening!


Reply With Quote
  #5  
Old February 25th, 2004, 02:13 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Sendmail II

and its not! How exactly are you starting it.

Reply With Quote
  #6  
Old February 25th, 2004, 02:49 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Sendmail II

# /usr/sbin/sendmail -db -q30m

Reply With Quote
  #7  
Old February 25th, 2004, 03:09 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Sendmail II

you cant do service sendmail start????

Reply With Quote
  #8  
Old February 25th, 2004, 03:43 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Sendmail II

I will eventually set up an inetd script to start sendmail at boot. But right now I want to get set up, troubleshoot and properly configure the installation.

-Tim

Reply With Quote
  #9  
Old February 25th, 2004, 03:53 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Sendmail II

The latest RPM for sendmail has chkconfig support, which usually means the startup scripts are already done....less work for you.

Reply With Quote
  #10  
Old February 25th, 2004, 04:38 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Sendmail II

Thanks, but I'm compiling from source and running Slackware.

-Tim

Reply With Quote
  #11  
Old February 26th, 2004, 04:04 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Sendmail II

Tim,

PM me your email address, I am going to give you a startup script you can run from bash. Try it that way.

Reply With Quote
  #12  
Old February 27th, 2004, 03:35 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Sendmail II

Thanks Postal Cow,

I received your email this morning, but I think some modifcations will have to be made for the script to work under slackware.

# cp ./sendmail.dat /etc/rc.d/sendmail.dat
# cd /etc/rc.d
# chmod +x sendmail.dat
# ./sendmail.dat start

./sendmail.dat: line 14: /etc/rc.d/init.d/functions: No such file or directory
./sendmail.dat: line 17: /etc/sysconfig/network: No such file or directory
./sendmail.dat: line 28: [: =: unary operator expected
Starting sendmail: ./sendmail.dat: line 49: daemon: command not found


Reply With Quote
  #13  
Old February 27th, 2004, 04:03 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Sendmail II

I forgot you were running slackware (brain fart). Let me look into this and I'll be back to you later today. What I emailed you won't work... obviously so

Reply With Quote
  #14  
Old February 27th, 2004, 06:29 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Sendmail II

Stupid Slack!

I chose to go Slackware when I upgraded the server for several reasons, most notibly a cleaner platform for compiling. It's a trade off, though... the sysV system is nice.

On the brighter side, Slack's default installation of vi is a bit less forgiving and has forced me to learn more than just a,D,dd,y and P!

Maybe I should just code my own mail server program. lol

-Tim

Reply With Quote
  #15  
Old February 27th, 2004, 06:33 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: RE: Sendmail II


Quote:
On the brighter side, Slack's default installation of vi is a bit less forgiving and has forced me to learn more than just a,D,dd,y and P!

Solaris is the same way....you can however compile vim for slack, I believe.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Sendmail II


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump