Results 1 to 4 of 4

Thread: Sending email with dash script fails OS11.4

  1. #1

    Default Sending email with dash script fails OS11.4

    I try toe send a email with a dash sctipt to my own email address.
    With openSuse 10.0 i used the commandos:

    set smtp=smtp.provider.nl
    nail -r "$FROM" -s "$SUBJECT" "$TO" <$BodyTekst


    with
    $FROM as the email address sender
    $SUBJECT as the subject
    $TO as the destiantion eMail address

    With openSuse 11.4 this will not work
    who can help me
    Kees


    The mail.info file contains the following lines


    Sep 24 11:54:01 Hektor postfix/smtp[8376]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 11:54:01 Hektor postfix/smtp[8375]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 11:54:01 Hektor postfix/smtp[8377]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 11:54:01 Hektor postfix/smtp[8379]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 11:54:01 Hektor postfix/smtp[8378]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 11:54:01 Hektor postfix/smtp[8376]: F15FB18064E: to=<info@mydomain.nl>, relay=none, delay=638, delays=608/0.02/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/smtp[8379]: 3F23C18063B: to=<LinuxRoot@mydomain.nl>, relay=none, delay=58238, delays=58208/0.04/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/smtp[8375]: DF38918061A: to=<info@mydomain.nl>, relay=none, delay=65229, delays=65199/0.05/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/smtp[8377]: 3DE0B180616: to=<info@mydomain.nl>, relay=none, delay=45739, delays=45708/0.03/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/smtp[8378]: 31545180634: to=<info@mydomain.nl>, relay=none, delay=65136, delays=65105/0.04/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/error[8391]: 0DA12180617: to=<info@mydomain.nl>, relay=none, delay=45641, delays=45611/30/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/error[8393]: 810BE18061F: to=<info@mydomain.nl>, relay=none, delay=65217, delays=65187/30/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/error[8394]: 77124180637: to=<LinuxRoot@mydomain.nl>, relay=none, delay=60640, delays=60610/30/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/error[8395]: 6FB871805FA: to=<info@mydomain.nl>, relay=none, delay=45818, delays=45788/30/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/error[8392]: 80F7D180638: to=<LinuxRoot@mydomain.nl>, relay=none, delay=60640, delays=60610/30/0/0.06, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:54:01 Hektor postfix/error[8391]: 9F58B180640: to=<info@mydomain.nl>, relay=none, delay=46616, delays=46586/30/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 11:58:31 Hektor postfix/qmgr[2156]: 668E018064C: from=<root@Hektor.site>, size=435, nrcpt=1 (queue active)
    Sep 24 11:58:31 Hektor postfix/error[8448]: 668E018064C: to=<info@mydomain.nl>, relay=none, delay=1062, delays=1062/0.01/0/0.05, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 12:08:31 Hektor postfix/qmgr[2156]: F15FB18064E: from=<root@Hektor.site>, size=435, nrcpt=1 (queue active)
    Sep 24 12:08:31 Hektor postfix/qmgr[2156]: 76780180647: from=<root@Hektor.site>, size=434, nrcpt=1 (queue active)
    Sep 24 12:09:01 Hektor postfix/smtp[8592]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 12:09:01 Hektor postfix/smtp[8592]: 76780180647: to=<info@mydomain.nl>, relay=none, delay=2193, delays=2163/0.02/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 12:09:01 Hektor postfix/smtp[8591]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 12:09:01 Hektor postfix/smtp[8591]: F15FB18064E: to=<info@mydomain.nl>, relay=none, delay=1538, delays=1508/0.02/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)
    Sep 24 12:18:31 Hektor postfix/qmgr[2156]: 668E018064C: from=<root@Hektor.site>, size=435, nrcpt=1 (queue active)
    Sep 24 12:19:01 Hektor postfix/smtp[8716]: connect to mydomain.nl[83.137.194.56]:25: Connection timed out
    Sep 24 12:19:01 Hektor postfix/smtp[8716]: 668E018064C: to=<info@mydomain.nl>, relay=none, delay=2292, delays=2262/0.01/30/0, dsn=4.4.1, status=deferred (connect to mydomain.nl[83.137.194.56]:25: Connection timed out)

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Sending email with dash script fails OS11.4

    As you can see from the log file, it's relaying to the local postfix instead of relaying to smtp.provider.nl. I don't know about dash and nail, but you can achieve the same thing in mailx:

    mailx -S smtp=smtp.provider.nl -r "$FROM" -s "$SUBJECT" "$TO" <$BodyTekst

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,922
    Blog Entries
    2

    Default Re: Sending email with dash script fails OS11.4

    The way I read the logfile,
    You're correctly passing the message to your local SMTP agent which is Postfix, but it's timing out attempting to connect to your remote SMTP Smart Relay (mydomain.nl). I assume that "mydomain.nl" is the sanitized name for your actual SMTP Smarthosty... If it's not, then that's your likely problem.

    Otherwise, I'd consider why the remote SMTP Smarthost isn't responding. You may need to test connecting to that Server using an alternative app (even telnet port 25) to see if you can at least get a banner response... But if that SMTP Smarthost is configured to just not respond in any way in the event of failure, then troubleshooting is a bit more difficult.

    Suggestion:
    Try the simple mail commaind to send a test message instead of nail.

    HTH,
    Tony

  4. #4

    Default Re: Sending email with dash script fails OS11.4

    Quote Originally Posted by ken_yap View Post
    As you can see from the log file, it's relaying to the local postfix instead of relaying to smtp.provider.nl. I don't know about dash and nail, but you can achieve the same thing in mailx:

    mailx -S smtp=smtp.provider.nl -r "$FROM" -s "$SUBJECT" "$TO" <$BodyTekst
    To use mailx en the addition -S smtp=smtp.provider.nl
    works

    Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •