Sendmail hang

11 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Mike Dewhirst

ungelesen,
05.06.2022, 03:14:1405.06.22
an Trac Users
Warum ist sie als Missbrauch markiert? Sie wurde als Missbrauch markiert.
Als "kein Missbrauch" melden
I just installed Trac 1.5 on Ubuntu 20.04 under Apache and with
PostgreSQL 12 and it all seems to work fine except email notification.

I have a Django app running on the same server and email notification
(ie., Forgotten password) works well for that.

I'm using exactly the same credentials, user, port number and smtp
server for Trac as for the Django app.

When I reply to a ticket (ticket #1 btw) as a test Trac never returns.
There is no crash and nothing reported in the Apache log nor syslog.

Here is my [notification] settings in trac.ini

[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = ${prefix} Batch modify: ${tickets_descr}
default_format.email = text/plain
email_address_resolvers = SessionEmailResolver
email_sender = SmtpEmailSender
ignore_domains =
message_id_hash = md5
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc = mi...@xxx.com
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = sys...@xxx.com
smtp_from_author = disabled
smtp_from_name =
smtp_password = xxx
smtp_port = 465
smtp_replyto = sup...@xxx.com
smtp_server = smtp.xxx.com.au
smtp_subject_prefix = __default__
smtp_user = sys...@xxx.com
ticket_subject_template = ${prefix} #${ticket.id}: ${summary}
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

xxx is just obfuscation - happy to reveal it privately if necessary.

Where do you think I'm going wrong?

Any hints appreciated

Thanks

Mike



--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.

OpenPGP_signature

Jun Omae

ungelesen,
05.06.2022, 18:45:1205.06.22
an trac-...@googlegroups.com
Warum ist sie als Missbrauch markiert? Sie wurde als Missbrauch markiert.
Als "kein Missbrauch" melden
First, I suggest to check $ENV/log/trac.log after enabling trac logging [1].

Trac doesn't currently support SMTPS. The [notification] use_tls
option is for STARTTLS.
Try to use SMTP port (25, 587, ...) rather than SMTPS port (465).

[1] https://trac.edgewall.org/wiki/TracLogging

--
Jun Omae <jun...@gmail.com> (大前 潤)

Mike Dewhirst

ungelesen,
05.06.2022, 22:21:3705.06.22
an trac-...@googlegroups.com
Warum ist sie als Missbrauch markiert? Sie wurde als Missbrauch markiert.
Als "kein Missbrauch" melden
Logging showed I had not set the base_url - which I have now fixed.

>
> Trac doesn't currently support SMTPS. The [notification] use_tls
> option is for STARTTLS.
> Try to use SMTP port (25, 587, ...) rather than SMTPS port (465).

Port 25 worked and so my Trac is now functional on Python3

Many thanks Jun Omae

Cheers

Mike


>
> [1] https://trac.edgewall.org/wiki/TracLogging
OpenPGP_signature
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten