|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
RE: Sendmail II
Your starting sendmail just from bash or are you using a startup script in rc.d?
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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! |
|
#5
|
|||
|
|||
|
RE: Sendmail II
and its not! How exactly are you starting it.
|
|
#6
|
||||
|
||||
|
RE: Sendmail II
# /usr/sbin/sendmail -db -q30m
|
|
#7
|
|||
|
|||
|
RE: Sendmail II
you cant do service sendmail start????
|
|
#8
|
||||
|
||||
|
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 |
|
#9
|
|||
|
|||
|
RE: Sendmail II
The latest RPM for sendmail has chkconfig support, which usually means the startup scripts are already done....less work for you.
|
|
#10
|
||||
|
||||
|
RE: Sendmail II
Thanks, but I'm compiling from source and running Slackware.
-Tim |
|
#11
|
|||
|
|||
|
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. |
|
#12
|
||||
|
||||
|
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 |
|
#13
|
|||
|
|||
|
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
|
|
#14
|
||||
|
||||
|
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 |
|
#15
|
|||
|
|||
|
RE: RE: Sendmail II
Quote:
Solaris is the same way....you can however compile vim for slack, I believe. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Sendmail II |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|