|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
Помогите с Sendmail03.10.2011, 17:34. Показов 8959. Ответов 41
Метки нет (Все метки)
Доброго дня.
Проблема следующая. IP-адрес выданный провайдером находится в спам базах. Можно ли настроить Sendmail чтоб все локальные письма он отправлял с аккаунта ну например gmail? FreeBSD 8.0-RELEASE
0
|
|
| 03.10.2011, 17:34 | |
|
Ответы с готовыми решениями:
41
Sendmail не отправляет почту. Sendmail подставляет MAILER-DAEMON в поле MAIL FROM Не поддерживается функция mail(), но даётся путь к sendmail /usr/sbin/sendmail |
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
||
| 06.10.2011, 06:37 [ТС] | ||
|
smtp это поправлю а пароли с логином где прописывать так и не нашел. Добавлено через 13 минут Oct 6 10:12:54 web1 postfix/smtp[954]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 10:12:55 web1 postfix/master[935]: warning: process /usr/local/libexec/postfix/smtp pid 954 exit status 1 Oct 6 10:12:55 web1 postfix/master[935]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Oct 6 10:12:55 web1 postfix/postfix-script[998]: fatal: the Postfix mail system is already running Oct 6 10:13:55 web1 postfix/smtp[1106]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 10:13:56 web1 postfix/master[935]: warning: process /usr/local/libexec/postfix/smtp pid 1106 exit status 1 Oct 6 10:13:56 web1 postfix/master[935]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Oct 6 10:14:56 web1 postfix/smtp[1128]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 10:14:57 web1 postfix/master[935]: warning: process /usr/local/libexec/postfix/smtp pid 1128 exit status 1 Oct 6 10:14:57 web1 postfix/master[935]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Oct 6 10:15:57 web1 postfix/smtp[1131]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 10:15:58 web1 postfix/master[935]: warning: process /usr/local/libexec/postfix/smtp pid 1131 exit status 1 Oct 6 10:15:58 web1 postfix/master[935]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling
0
|
||
|
7176 / 3234 / 82
Регистрация: 17.06.2009
Сообщений: 14,164
|
||
| 06.10.2011, 10:14 | ||
1
|
||
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
|
| 06.10.2011, 10:43 | |
|
0
|
|
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 10:55 [ТС] | |
|
relayhost = [smtp.gmail.com]
smtp_sasl_pssword_map=hash:/usr/local/etc/postfix/relay_password smtp_sasl_auth_enable=yes broken_sasl_auth_clients = yes smtp_sasl_security_options = noanonymous smtp_sasl_type = dovecot Сделал так, не работает, что не правильно?
0
|
|
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
|||
| 06.10.2011, 11:01 | |||
|
Добавлено через 2 минуты
0
|
|||
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 11:06 [ТС] | |
|
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 html_directory = /usr/local/share/doc/postfix mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man mynetworks_style = host newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/local/share/doc/postfix relayhost = [smtp.gmail.com] sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_sasl_type = dovecot unknown_local_recipient_reject_code = 550 НЕ ВИЖУ ОШИБОК
0
|
|
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
|
| 06.10.2011, 11:09 | |
|
1
|
|
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
||
| 06.10.2011, 11:33 [ТС] | ||
|
Oct 6 14:45:13 web1 postfix/postfix-script[1667]: starting the Postfix mail system
Oct 6 14:45:13 web1 postfix/master[1668]: daemon started -- version 2.6.5, configuration /usr/local/etc/postfix Oct 6 14:45:13 web1 postfix/smtp[1672]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 14:45:14 web1 postfix/master[1668]: warning: process /usr/local/libexec/postfix/smtp pid 1672 exit status 1 Oct 6 14:45:14 web1 postfix/master[1668]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Oct 6 14:46:14 web1 postfix/smtp[1677]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 14:46:15 web1 postfix/master[1668]: warning: process /usr/local/libexec/postfix/smtp pid 1677 exit status 1 Oct 6 14:46:15 web1 postfix/master[1668]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Oct 6 14:47:15 web1 postfix/smtp[1678]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 14:47:16 web1 postfix/master[1668]: warning: process /usr/local/libexec/postfix/smtp pid 1678 exit status 1 Oct 6 14:47:16 web1 postfix/master[1668]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Oct 6 14:48:16 web1 postfix/smtp[1680]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 14:48:17 web1 postfix/master[1668]: warning: process /usr/local/libexec/postfix/smtp pid 1680 exit status 1 Oct 6 14:48:17 web1 postfix/master[1668]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Oct 6 14:49:17 web1 postfix/smtp[1681]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter Oct 6 14:49:18 web1 postfix/master[1668]: warning: process /usr/local/libexec/postfix/smtp pid 1681 exit status 1 Oct 6 14:49:18 web1 postfix/master[1668]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling Добавлено через 2 минуты блин блинский сматрю в книгу видю фигу. Добавлено через 20 минут broken_sasl_auth_clients = yes command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 html_directory = /usr/local/share/doc/postfix mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man mynetworks_style = host newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/local/share/doc/postfix relayhost = [smtp.gmail.com] sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/usr/local/etc/postfix/relay_password smtp_sasl_security_options = noanonymous smtp_sasl_type = cyrus unknown_local_recipient_reject_code = 550 теперь так в логе при старте все нормально при отправке пишет status=bounced (host smtp.gmail.com[74.125.43.108] said: 530 5.7.0 Must issue a STARTTLS command first. z7sm4331954bkt.5 (in reply to MAIL FROM command)) где включить этот TTLS
0
|
||
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
|
| 06.10.2011, 11:35 | |
|
0
|
|
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 12:05 [ТС] | |
|
как я понял этот TLS включается в dovecot? правильно?
а он толи не запущен толи не настроен Добавлено через 7 минут broken_sasl_auth_clients = yes command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 html_directory = /usr/local/share/doc/postfix mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man mynetworks_style = host newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/local/share/doc/postfix relayhost = [smtp.gmail.com] sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/usr/local/etc/postfix/relay_password smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = $smtp_sasl_security_options smtp_sasl_type = cyrus unknown_local_recipient_reject_code = 550 Правильно?
0
|
|
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
||
| 06.10.2011, 13:27 | ||
|
Вам нужно создать сертификаты для postfix (так же как вы это делали для sendmail) и включить TLS для smtp: smtp_use_tls = yes smtp_tls_CAfile = /путь/к/CA.pem smtp_tls_cert_file = /путь/к/сертификату/для/gmail smtp_tls_key_file = /путь/к/ключу/для/gmail и опционально: smtp_tls_session_cache_database = btree:/где/постфикс/будет/кэшировать/сессии
0
|
||
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 17:57 [ТС] | |
|
не помогло.
0
|
|
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
|
| 06.10.2011, 18:04 | |
|
Вам просто посочувствовать или postconf -n + кусочек лога покажите?
0
|
|
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 18:07 [ТС] | |
|
config_directory = /usr/local/etc/postfix
relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/usr/local/etc/postfix/relay_password smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /usr/local/etc/postfix/serts/mycert.pem smtp_tls_cert_file = /usr/local/etc/postfix/serts/mycert smtp_tls_key_file = /usr/local/etc/postfix/serts/mykey.pem smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache smtp_use_tls = yes smtpd_sasl_local_domain = $myhostname relay=smtp.gmail.com[74.125.43.109]:587, delay=0.57, delays=0/0/0.42/0.14, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.43.109] said: 530 5.7.0 Must issue a STARTTLS command first. k26sm5653714bks.1 (in reply to MAIL FROM command))
0
|
|
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
||
| 06.10.2011, 18:20 | ||
|
Попробуйте добавить smtp_tls_security_level = encrypt
и лога больше покажите, вдруг он там на что-то раньше ругается... Добавлено через 1 минуту
0
|
||
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 18:38 [ТС] | |
|
Oct 6 21:33:16 web1 postfix/smtp[1458]: cannot load Certificate Authority data: disabling TLS support
Oct 6 21:33:16 web1 postfix/smtp[1458]: warning: TLS library problem: 1458:error:02001002:system library:fopen:No such file or directory:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:126:fopen('/usr/local/etc/postfix/serts/mycert.pem','r'): Oct 6 21:33:16 web1 postfix/smtp[1458]: warning: TLS library problem: 1458:error:2006D080:BIO routines:BIO_new_file:no such file:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:129: Oct 6 21:33:16 web1 postfix/smtp[1458]: warning: TLS library problem: 1458:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/x509/by_file.c:274: Oct 6 21:33:16 web1 postfix/smtp[1460]: cannot load Certificate Authority data: disabling TLS support Добавлено через 16 секунд ага нашел вот
0
|
|
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
|
| 06.10.2011, 18:46 | |
|
0
|
|
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 18:48 [ТС] | |
|
видимо не хватает openssl
0
|
|
|
1259 / 650 / 44
Регистрация: 06.02.2011
Сообщений: 1,654
|
|
| 06.10.2011, 18:51 | |
|
Нет. Внимательности/аккуратности вам не хватает.
/usr/local/etc/postfix/serts/mycert.pem - нет у вас в системе такого файла, а в конфиге постфикса есть.
0
|
|
|
0 / 0 / 0
Регистрация: 25.08.2011
Сообщений: 17
|
|
| 06.10.2011, 19:29 [ТС] | |
|
делел как написано тут
видимо здесь не правильно [root@mithila /etc/mail] cd certs [root@mithila /etc/mail/certs] openssl dsaparam 1024 -out dsa1024.pem [root@mithila /etc/mail/certs] openssl req -x509 -nodes -days 3650 -newkey dsa:dsa1024.pem -out /etc/mail/certs/mycert.pem -keyout /etc/mail/certs/mykey.pem [root@mithila /etc/mail/certs] ln -s /etc/mail/certs/mycert.pem /etc/mail/certs/CAcert.pem [root@mithila /etc/mail/certs] openssl req -x509 -new -days 3650 -key /etc/mail/certs/mykey.pem -out /etc/mail/certs/mycert.pem Переделал вот так host ~ # /etc/ssl/misc/CA.pl -newca host ~ # openssl req -new -nodes -subj '/CN=domain.com/O=Name/C=US/ST=State/L=Location/emailAddress=user@gmail.com' -keyout FOO-key.pem -out FOO-req.pem -days 3650 host ~ # openssl ca -out FOO-cert.pem -infiles FOO-req.pem host ~ # cp demoCA/cacert.pem FOO-key.pem FOO-cert.pem /etc/postfix host ~ # chmod 644 /etc/postfix/FOO-cert.pem /etc/postfix/cacert.pem host ~ # chmod 400 /etc/postfix/FOO-key.pem стал говорить Oct 6 23:05:28 web1 postfix/smtp[19940]: warning: cannot get RSA certificate from file /usr/local/etc/postfix/FOO-cert.pem: disabling TLS support Oct 6 23:05:28 web1 postfix/smtp[19940]: warning: TLS library problem: 19940:error:0906D06C:PEM routines:PEM_read_bio:no start line:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/pem/pem_lib.c:650:Expecting: CERTIFICATE: Oct 6 23:05:28 web1 postfix/smtp[19940]: warning: TLS library problem: 19940:error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_f ile:PEM lib:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_rsa.c:729:
0
|
|
| 06.10.2011, 19:29 | |
|
Как сделать sendmail.cf из sendmail.mc sendmail sendmail Sendmail help!!! Установка sendmail Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
|||
|
Саморегулирующийся социальный контракт для сервера cross-section.
Hrethgir 14.08.2026
С кодом конечно таких глубоких размышлений пока не было, впрочем я уже привык к алгоритмизации. Суть предмета записи: снова в диалоге с нейросетью (я взял пока себе ник для учётки админа - Rector). . . .
|
Часы электронные
Uhbif79 12.08.2026
Выкладываю программу часов. Программа позволяет:
1. Использовать системное время и дату,
2. Есть возможность вводить время и дату вручную.
3. Реализованы 2 будильника: начало и конец рабочего дня. . . .
|
Часы с будильником на основе класса QLCDNumber
Uhbif79 12.08.2026
Всем добрый день, выкладываю программу часов с будильником на основе класса QLCDNumber.
Здесь я пробовал самостоятельно создавал классы, впервые столкнулся с видимостью переменной одного класса из. . .
|
Установка MinGW GCC 16.2 и CMake
8Observer8 10.08.2026
VK Видео:
https:/ / vkvideo. ru/ video-240781534_456239017
YouTube:
eY5-5PyI9NM
Текстовая версия
|
|
Неделя из жизни имитационной модели склада: мои кривые руки растут, откуда надо
anaschu 10.08.2026
Неделя из жизни имитационной модели склада: как я почти написал неправильную логику и что с этим делать
Работаю сейчас над учебно-рабочим проектом: строю в AnyLogic имитационную модель процессов. . .
|
Калькулятор для расчета родства
russiannick 07.08.2026
1. Задача: Создать калькулятор для расчета родства.
Родственных связей существует 8 ступеней, такие как:
p - отец
P - мать
q - муж
Q - жена
b - брат
B - сестра
s - сын
S - дочь
|
Мир по моей воле
kumehtar 07.08.2026
Когда-то кажется, что всё просто. Ты весь такой светлый. Причиняешь добро. Борешься за справедливость в этом тёмном мире.
Потом начинаешь замечать одну неприятную вещь. Почти каждый хороший. . .
|
Кредитный калькулятор
Maks 05.08.2026
Решение задачи по прикладной информатике средствами 1С.
Задача:
Напишите приложение-калькулятор, которое помогает рассчитывать параметры кредита для аннуитетного и дифференцированного видов. . .
|