|
Настройка автоответа в postfix-е
|
|||
---|---|---|---|
#18+
Подскажите, пожалуйста, что я делаю не так? 1. Создаю пользователя, который будет посылать автоответы: useradd -c "Autoresponer" -g mail -m -s /sbin/nologin autoresp 2. В master.cf добавляю в конец две строки: redirect unix - n n - - pipe flags=R user=autoresp argv=/etc/postfix/script ${sender} ${recipient} 3. В /etc/postfix/script должно быть: #!/bin/bash /usr/sbin/sendmail -f $2 $1 < /etc/postfix/autoreply.txt Права на скрипт - должен быть выполняемым для autoresp 4. Создаю файл /etc/postfix/autoreply.txt и вписать в него текст сообщения This is a autoreply text I am absent Send mail later 5. Добавляю в main.cf: smtpd_recipient_restrictions = "что там есть", hash:/etc/postfix/recipient 6. Создаю файл /etc/postfix/recipient такого вида: user1@samara.vbrr.ru FILTER redirect: user2@samara.vbrr.ru FILTER redirect: 7. postmap recipient 8. postfix reload Посылаю письмо на user1@samara.vbrr.ru и не получаю автоответа. Почему, что может быть не так? Заранее благодарен. ... |
|||
:
Нравится:
Не нравится:
|
|||
24.06.2015, 16:58 |
|
Настройка автоответа в postfix-е
|
|||
---|---|---|---|
#18+
korbnik, написано в офиц. документации: Autoreplies In order to set up an autoreply for virtual recipients while still delivering mail as normal, set up a rule in a virtual alias table: Код: php 1. 2.
Код: php 1. 2.
This delivers mail to the recipient, and sends a copy of the mail to the address that produces automatic replies. The address can be serviced on a different machine, or it can be serviced locally by setting up a transport map entry that pipes all mail for autoreply.mydomain.tld into some script that sends an automatic reply back to the sender. DO NOT list autoreply.mydomain.tld in mydestination! Код: php 1. 2. 3. 4. 5.
Код: php 1. 2. 3. 4. 5. 6. 7.
This invokes /path/to/autoreply with the sender address and the user@domain.tld recipient address on the command line. вот здесь то же самое по-русски: ... |
|||
:
Нравится:
Не нравится:
|
|||
24.06.2015, 18:17 |
|
|
start [/forum/topic.php?fid=25&msg=38991854&tid=1482038]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
129ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
others: | 15ms |
total: | 235ms |
0 / 0 |