Page 7 of 11 FirstFirst ... 56789 ... LastLast
Results 91 to 105 of 160

Thread: Помогите настроить Sendmail и Postfix

  1. #91
    /usr/sbin/mini_sendmail

  2. #92

    Cool usage: mini_sendmail

    Quote Originally Posted by theMIROn View Post
    /usr/sbin/mini_sendmail
    usage: mini_sendmail [-f<name>] [-t] [-s<server>] [-p<port>] [-T<timeout>] [-v] [address ...]

    Ткните пальцем, где тут -s "тема" ?

    у мини, так же как и у "старшего" брата - sendmail один синтаксис!

    И он НЕ СОВПАДАЕТ с синтаксисом mail

  3. #93
    сделайте скрипт на баше, который назовите mail или еще как, который будет брать из параметров -s<...> и выставлять в текст вида Subject: <...>

  4. #94
    конкретно я для cron нарисовал скриптик

    Code:
    #!/bin/sh
    # Simple SHELL script for Linux and UNIX system monitoring
    
    HOST="192.168.0.254"
    SERVICES="thttpd lighttpd cron proftpd"
    
    # email report when 
    SUBJECT="Service is down"
    EMAILID="naves@random-domain.net"
    
    for myService in $SERVICES
    do
    	echo testing $myService
    	count=$(pidof $myService)
    	echo count=$count
    	if [ "$count" -eq 0 ]; then
    		# Service failed
    		echo "$HOST : $myService is down at $(date)"
    		#echo "$HOST : $myService is down at $(date)" | sendmail -s "$SUBJECT" $EMAILID
    		case "$myService" in
    			"thttpd")
    				echo "trying to start thttpd..."
    				/opt/etc/init.d/S80thttpd start
    				;;
    			"lighttpd")
    				echo "trying to start lighttpd..."
    				/opt/etc/init.d/S80lighttpd start
    				;;	
    			"proftpd")
    				echo "trying to start proftpd..."
    				/opt/sbin/proftpd
    				;;
    			*)
    				echo "default unknown"
    				;;
    		esac
    	else
    	    echo "$HOST : $myService is OK at $(date)"
    	fi
    done
    его запихать в каталог \opt\etc\cron.5mins\
    и не спрашивайте зачем у меня в списке проверяемых сервисов сам cron
    Last edited by Omega; 22-08-2011 at 22:12. Reason: fixed

  5. #95

    Wink Помогите настроить Sendmail, Postfix.

    На d-link 320 поставил Sendmail, Lighttpd (php-fcgi, perl) Форум ExBB . Уж очень хочется чтоб пользователям пароль на почту присылался. Да и вообще, собственный почтовый сервер не помешал бы...
    Вобщем жду помощи, как говориться, литр с меня (или даже два) Кстати очень интересная железка получилась
    Last edited by autoelektrik; 11-12-2009 at 13:13.

  6. #96

  7. #97
    Quote Originally Posted by autoelektrik View Post
    кто нибудь может помочь?
    Xmail не устроит или postfix?

  8. #98
    Code:
    [admin@router root]$ mini_sendmail --help
    usage:  mini_sendmail [-f<name>] [-t] [-s<server>] [-p<port>] [-T<timeout>] [-v] [address ...]
    mini_sendmail(8) mini_sendmail(8)

    NAME
    mini_sendmail - accept email on behalf of real sendmail

    SYNOPSIS
    mini_sendmail [-f<name>] [-t] [-s<server>] [-p<port>] [-T<timeout>] [-v] address ...

    DESCRIPTION
    With no flags, mini_sendmail reads its standard input up to an end-of-file and sends a copy of the message found there
    to all of the addresses listed.

    The message is sent by connecting to a local SMTP server. This means mini_sendmail can be used to send email from
    inside a chroot(2) area.

    -f Sets the name of the "from" person (i.e. the sender of the mail).

    -t Read message for recipients. To:, Cc:, and Bcc: lines will be scanned for recipient addresses. The Bcc: line
    will be deleted before transmission.

    -s Specifies the SMTP server to use. Without this it uses localhost.

    -p Specifies the port to use. Without this it uses 25, the standard SMTP port.

    -T Specifies timeout - defaults to one minute.

    -v Verbose mode - shows the conversation with the SMTP server.

    SEE ALSO
    sendmail(8)

    AUTHOR
    Copyright <A9> 1999 by Jef Poskanzer <jef@mail.acme.com>. All rights reserved.

  9. #99
    Join Date
    Jan 2009
    Location
    Kazan, Russia
    Posts
    1,163
    Что-то припоминаю.... Было, задолбало. Пошло с nail вот так

    Code:
    $nail -A myisp -v -s "New message" lnrmn@xxx.ru < телописьма.msg
    Resolving host box.xxx.ru . . . done.
    Connecting to 217.xx.xx.37 . . . connected.
    220 webmail.xxx.ru ESMTP
    >>> HELO WL500W
    250 webmail.xxx.ru
    >>> MAIL FROM: <wl500w@xxx.ru>
    250 2.1.0 Ok
    >>> RCPT TO: <lnrmn@xxx.ru>
    250 2.1.5 Ok
    >>> DATA
    354 End data with <CR><LF>.<CR><LF>
    >>> .
    250 2.0.0 Ok: queued as A539A3E19E7
    >>> QUIT
    221 2.0.0 Bye
    в nail.rc делаешь настройки для провайдера логины, пароли, сервера pop smtp

    так же мучился. Переставил почти всех мэйл клиентов. Запарился до усеру. Только nail поставил, он оказался последним, прописал провайдера логин пароль - и АХХХ вздохнудл от щастия!!
    Last edited by LnrMn; 03-07-2009 at 20:07.
    Asus RT-AC66U, Xerox Phaser 3160B, on the shelf RT-N16 (Killed by lightning)
    WL-500gPv1 128MB, WL-500W 300MHz/128M, LCD 40x4, DIR-320 8Mb/64MB
    WL-700g 128MB, MNV25E2+ and more and more devices. provod.beeline.ru

    -------------------------------------------
    Computers. Since 1984. First one - "МИР-1"

  10. #100
    Quote Originally Posted by LnrMn View Post
    Что-то припоминаю.... Было, задолбало. Пошло с nail вот так

    Code:
    $nail -A myisp -v -s "New message" lnrmn@xxx.ru < телописьма.msg
    Resolving host box.xxx.ru . . . done.
    Connecting to 217.xx.xx.37 . . . connected.
    220 webmail.xxx.ru ESMTP
    >>> HELO WL500W
    250 webmail.xxx.ru
    >>> MAIL FROM: <wl500w@xxx.ru>
    250 2.1.0 Ok
    >>> RCPT TO: <lnrmn@xxx.ru>
    250 2.1.5 Ok
    >>> DATA
    354 End data with <CR><LF>.<CR><LF>
    >>> .
    250 2.0.0 Ok: queued as A539A3E19E7
    >>> QUIT
    221 2.0.0 Bye
    в nail.rc делаешь настройки для провайдера логины, пароли, сервера pop smtp

    так же мучился. Переставил почти всех мэйл клиентов. Запарился до усеру. Только nail поставил, он оказался последним, прописал провайдера логин пароль - и АХХХ вздохнудл от щастия!!
    Вот это уже итересно... Спасибо, сейчас попробую

  11. #101
    Join Date
    Jan 2009
    Location
    Kazan, Russia
    Posts
    1,163
    Посмотрел сейчас где что...
    в /tmp/local/root/.mailrc
    Code:
    account myisp {
    set smtp=box.xxx.ru
    set from=wl500w@xxx.ru
    }
    в /opt/etc/nail.rc в самом конце
    Code:
    # Hide some header fields which are uninteresting for most human readers.
    ignore received in-reply-to message-id references
    ignore mime-version content-transfer-encoding
    shortcut MyMail pop3://wl500w@xxx.ru:110
    set password-wl500w@xxx.ru:110="password"
    
    # Only include selected header fields when forwarding messages.
    fwdretain subject date from to
    
    set smtp=box.xxx.ru
    set pop=box.xxx.ru
    set from="wl500w@xxx.ru"
    Вот вроде все настройки. Удачи.
    Last edited by LnrMn; 03-07-2009 at 20:46.
    Asus RT-AC66U, Xerox Phaser 3160B, on the shelf RT-N16 (Killed by lightning)
    WL-500gPv1 128MB, WL-500W 300MHz/128M, LCD 40x4, DIR-320 8Mb/64MB
    WL-700g 128MB, MNV25E2+ and more and more devices. provod.beeline.ru

    -------------------------------------------
    Computers. Since 1984. First one - "МИР-1"

  12. #102
    Да... Темный лес... Все-таки раз я начал с sendmail думаю что продолжу с ним возиться до победного конца... Кто нибудь знаком с ним как говориться "на ты" ?

  13. #103
    Join Date
    Jan 2009
    Location
    Kazan, Russia
    Posts
    1,163
    Quote Originally Posted by autoelektrik View Post
    Да... Темный лес... Все-таки раз я начал с sendmail думаю что продолжу с ним возиться до победного конца... Кто нибудь знаком с ним как говориться "на ты" ?
    Куда уж проще в двух файлах мои данные заменить на свои...

    box.xxx.ru - почтовик моего провайдера
    wl500w@xxx.ru - адрес, который я зарегистрировал для моего роутера.
    Last edited by LnrMn; 03-07-2009 at 20:57.
    Asus RT-AC66U, Xerox Phaser 3160B, on the shelf RT-N16 (Killed by lightning)
    WL-500gPv1 128MB, WL-500W 300MHz/128M, LCD 40x4, DIR-320 8Mb/64MB
    WL-700g 128MB, MNV25E2+ and more and more devices. provod.beeline.ru

    -------------------------------------------
    Computers. Since 1984. First one - "МИР-1"

  14. #104
    Quote Originally Posted by LnrMn View Post
    Посмотрел сейчас где что...
    в /tmp/local/root/.mailrc
    Code:
    account myisp {
    set smtp=box.xxx.ru
    set from=wl500w@xxx.ru
    }
    в /opt/etc/nail.rc в самом конце
    Code:
    # Hide some header fields which are uninteresting for most human readers.
    ignore received in-reply-to message-id references
    ignore mime-version content-transfer-encoding
    shortcut MyMail pop3://wl500w@xxx.ru:110
    set password-wl500w@xxx.ru:110="password"
    
    # Only include selected header fields when forwarding messages.
    fwdretain subject date from to
    
    set smtp=box.xxx.ru
    set pop=box.xxx.ru
    set from="wl500w@xxx.ru"
    Вот вроде все настройки. Удачи.
    Это же я так понимаю для работы с почтовыми ящиками зарегистрированными на других серверах? А мне нужно сделать свой сервер... (xxx@novlyanskoe.ru)
    Last edited by autoelektrik; 03-07-2009 at 20:54.

  15. #105
    Join Date
    Jan 2009
    Location
    Kazan, Russia
    Posts
    1,163
    novlyanskoe.ru на твоем роутере крутится чтоль?
    Asus RT-AC66U, Xerox Phaser 3160B, on the shelf RT-N16 (Killed by lightning)
    WL-500gPv1 128MB, WL-500W 300MHz/128M, LCD 40x4, DIR-320 8Mb/64MB
    WL-700g 128MB, MNV25E2+ and more and more devices. provod.beeline.ru

    -------------------------------------------
    Computers. Since 1984. First one - "МИР-1"

Page 7 of 11 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. Помогите настроить роутер Asus WL-500gP v2
    By berik_iushi in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 291
    Last Post: 22-10-2015, 18:43
  2. Помогите настроить Apache на роутере
    By ajsn in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 101
    Last Post: 29-06-2014, 16:22
  3. Помогите настроить git на роутере
    By taewoo in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 21
    Last Post: 21-02-2012, 05:00
  4. ...Помогите девушке-блондинке настроить роутер...
    By Just in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 50
    Last Post: 24-07-2009, 06:25
  5. Need help with installing MTA (postfix)
    By sturkel in forum WL-500gP Q&A
    Replies: 9
    Last Post: 07-05-2009, 21:30

Tags for this Thread

Posting Permissions

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