#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    59
    Rep Power
    11

    Question Mail and SendMail Basics: How can I check it's working?


    Hi,

    I need some basics about sendmail and mail, and how to know that they are both working ok on my Linux Suse server.

    What config settings do I need to check?

    Can I check they are both running?

    I have run commands like:

    mail -s "subject" me@mydoamin.org < file.txt

    but I never receive the emails.

    Thanks

    Daniel
    For everything Oracle - www.oraclehome.co.uk
  2. #2
  3. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    Originally Posted by danielrc15
    Hi,

    I need some basics about sendmail and mail, and how to know that they are both working ok on my Linux Suse server.

    What config settings do I need to check?

    Can I check they are both running?

    I have run commands like:

    mail -s "subject" me@mydoamin.org < file.txt

    but I never receive the emails.

    Thanks

    Daniel
    Run the command:
    ps aux | grep sendmail

    That should list whether sendmail is, in fact, running

    Check your mail logs:
    /var/log/mail

    If you see nothing of any use, edit the sendmail config file and set the logging to debug level

    Also, are you just testing from the server to the server? Or are you trying to email to and from outside the server?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    59
    Rep Power
    11
    Thanks for the tips.

    Run the command:
    ps aux | grep sendmail


    I get no output whatsoever.

    ps aux | grep qmail gives me:

    qmails 11828 0.0 0.0 1436 456 ? S 2007 0:41 qmail-send
    qmaill 11893 0.0 0.0 1388 440 ? S 2007 0:05 splogger qmail
    root 11894 0.0 0.0 1420 352 ? S 2007 0:01 qmail-lspawn ./Maildir/
    qmailr 11895 0.0 0.0 2340 1312 ? S 2007 0:01 qmail-rspawn
    qmailq 11896 0.0 0.0 1380 320 ? S 2007 0:01 qmail-clean
    root 14239 0.0 0.0 1352 272 pts/0 R+ 11:01 0:00 grep qmail


    That should list whether sendmail is, in fact, running

    Check your mail logs:
    /var/log/mail


    I do get this in my mail.info file:

    Feb 1 11:00:40 s15238540 qmail: 1201863640.093480 delivery 24261: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/

    Does this mean anything?

    If you see nothing of any use, edit the sendmail config file and set the logging to debug level

    I have tried to search for sendmail.cf, I thought the usual location was: /etc/mail - but all I have in that folder is popauth.db

    Daniel
    For everything Oracle - www.oraclehome.co.uk
  6. #4
  7. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    Well.. it looks like you have qmail running instead of sendmail. So the first think you're going to need to do is shutdown qmail and start sendmail. You'll need to edit your startup program list, but for now you can just type:
    service qmail stop
    service sendmail start
    ps aux | grep sendmail
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2008
    Posts
    9
    Rep Power
    0
    what u do is create a yahoo account and spam yourself a test mail

IMN logo majestic logo threadwatch logo seochat tools logo