LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-24-2003, 08:45 AM   #1
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Rep: Reputation: 0
Sendmail not working at all.


I can't figure out how to do this, I have no experience with sendmail, it's configured from guides, etc.

Basically, sendmail doesnt work, I can start it as a daemon, but I can send mail to local users or external addresses..

The os is RH 7.3, sendmail version... umm not sure how to get that, i've tried sendmail -v, -V, --Version and --version. I know it's a recent version because I updated it to fix the security vunerability.. im sorry im just useless at this, and it's pissing me off.

Help would be GREATLY appreciated.
 
Old 04-24-2003, 09:07 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
How have you tried to call it? What happens when you using the mail command? e.g. cat /etc/lilo.conf | mail root

cheers

Jamie...
 
Old 04-24-2003, 10:46 AM   #3
kenulla
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
use the command

sendmail -d0.1 -bt < /dev/null

to get the v ersion

-d sets debug level

-bt puts in address test mode

and te redirect from /dev/null gives it no address to test
 
Old 04-24-2003, 12:43 PM   #4
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, the version is 8.12.8

The way I tried to send mail was using Webmin, an online admin thingy, im not exatly sure of the command to send mail from the command line.

When I type mail, it tells me there is no mail for root, and when i type cat /etc/lilo.conf | mail root it says:

[root@you root]# cat /etc/lilo.conf | mail root
No message, no subject; hope that's ok
[root@you root]# collect: Cannot write ./dfh3OHgUd2005933 (bfcommit, uid=520, gid=508): Permission denied
queueup: cannot create queue temp file ./tfh3OHgUd2005933, uid=520: Permission denied
 
Old 04-25-2003, 11:04 AM   #5
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Anyone have any ideaS?
 
Old 04-25-2003, 12:52 PM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
What user were you running sendmail as? It sounds to me like sendmail it trying to write temporary files to a location that the user it's running as isn't able to write to. Can you see what user sendmail is running as?

cheers

Jamie...
 
Old 04-28-2003, 10:36 AM   #7
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for replying, the user was uid 520, 'smmsp'.
 
Old 04-29-2003, 02:13 AM   #8
bimble
Member
 
Registered: Dec 2001
Location: Chester, GBR
Distribution: Mostly Ubuntu
Posts: 48

Rep: Reputation: 15
dump it, use qmail!
 
Old 04-29-2003, 02:29 AM   #9
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Eehehehe right, i'm actually dumping QMail and using sendmail :P
 
Old 04-29-2003, 03:08 AM   #10
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Quote:
Originally posted by EL3CTRO
Eehehehe right, i'm actually dumping QMail and using sendmail :P
I can't say I blame you, all my boxes are qmail'd up now.

cheers

Jamie...
 
Old 05-01-2003, 03:58 PM   #11
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
*bump*

So, should I set certain permissions on the user sendmail runs as? If so, what permissions?
 
Old 05-02-2003, 03:34 AM   #12
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Sorry, I didn't reply sooner as I'm not that upto speed on how qmail uses its smmsp user to deliver mail, and I don't have any boxes runnig sendmail to have a look on either.

cheers

Jamie...
 
Old 05-03-2003, 02:31 AM   #13
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for trying anyway, just one more question..

I've got sendmail working, but now when I try to run it as a daemon, with the command: /usr/sbin/sendmail -bd -q10m it runs for about 30s to 1m then just stops... is there a log or something that sendmail writes to, that I could look at to see whats up? I've tried appending >/root/mailerror (A file I created) to the command, but the file just stays blank.
 
Old 05-03-2003, 06:06 AM   #14
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Typically sendmail logs through syslogd so you'll probably find something in /var/log/mail or /var/log/maillog or /var/log/message depending how syslogd is configures (/etc/syslogd.conf)

cheers

Jamie...
 
  


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
Sendmail Quota not working heislyc Linux - General 3 07-27-2005 11:40 PM
i am configure sendmail but it is not working raj_1 General 0 01-05-2005 05:38 PM
Help Getting Sendmail working Like I want it shilo Slackware 14 06-07-2004 01:34 PM
Sendmail / Mailertable not working! topkart94 Linux - Networking 6 03-05-2004 11:27 AM
Sendmail seems working but not Swift&Smart Linux - Software 2 05-14-2003 07:14 AM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration