Thread: sendmail

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

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    I call sendmail from a perl script but the message returns to me and doesn't go to the receipent - the script is fine as it has worked before.

    does anyone know is this a sendmail thing or something else?
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>the script is fine as it has worked before

    You believe it's fine but it may not.

    >>does anyone know is this a sendmail thing or something else?

    Show us your script and give more details. For example:
    - Are you running it from command line?
    - Is it your own server? If so, do you have root access?
    - Have you tried emailing the same receipent via hotmail?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    yes I have tried runing some from the command line others are called from form pages etc..

    yes to all other questions

    All scripts will execute but the mail portion will not no scripts have been changed. It just stopped sending mail!

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    now i'm getting this

    No local mailer defined
    QueueDirectory (Q) option must be set
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    HI

    I've now discovered all Messages are in
    /var/spool/mqueue
    but not going anywhere
  10. #6
  11. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    1) Restart Sendmail and see what happen

    2) Telnet to port 25 and send mail from there. Please ask if you need instruction.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    Hi
    Restarted Sendmail and reinstalled - got rid of the
    "No local mailer defined
    QueueDirectory (Q) option must be set"

    problem.

    The people who co-host our server have gone down this morning so I cannot telnet yet (I'm begining to think this may be a problem their end as they had e-mail problems during the week)

    As for port 25 am I right in saying:
    telnet open 123.123.123.123:25
    the 123's being the IP address.
  14. #8
  15. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Type in bold below.

    telnet 123.123.123.123 25
    Trying 123.123.123.123...
    Connected to foo.bar.com.
    Escape character is '^]'.
    220 foo.bar.com ESMTP Sendmail 8.11.0/8.11.0; Mon, 6 Nov 2000 01:02:57 -0800 (PST)
    helo foo.bar.com
    250 foo.bar.com Hello foo.bar.com, pleased to meet you
    mail from:<des@foo.bar.com>
    250 <des@foo.bar.com>... Sender ok
    rcpt to:<someone@foo.bar.com>
    250 <someone@foo.bar.com>... Recipent ok
    data
    354 Enter mail, end with "." on a line by itself
    Type your message here
    .
    250 Mail accepted
    quit
    221 foo delivering mail
    Connection closed by foreign host.

    Then su, su someone, mail and see if it's smtp problem.

    [This message has been edited by freebsd (edited November 06, 2000).]
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    Hi

    Tried that

    connection refused - unable to connect to remote host.
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    15
    it was our co - hosts problem its OK now
    Thanks for your help


IMN logo majestic logo threadwatch logo seochat tools logo