Hi,
"log" notify works fine:
2024-05-28T10:31:46.094044+02:00 mailserver lmtp[20952]: Delivered: <20240528083145.9870410034F@mailserver> to mailbox: user.testuser
2024-05-28T10:31:46.094493+02:00 mailserver notifyd[20922]: do_notify using method 'log'
2024-05-28T10:31:46.094625+02:00 mailserver notifyd[20922]: MAIL, , testuser, INBOX, "From: MAILER-DAEMON@xxxxxxxxxx (Mail Delivery System)#012Subject: Undelivered Mail Returned to Sender#012To: chose@xxxxxxxxxx#012"
But no email while set up to "mailto" method, no complains at all :-/.
2024-05-28T11:25:58.348086+02:00 mailserver lmtp[22641]: Delivered: <acc4de03f4098860b355b3858db30626@mailserver> to mailbox: user.testuser
2024-05-28T11:25:58.348501+02:00 mailserver notify[22623]: do_notify using method 'mailto'
It is able to debug the notify socket ? Similar to debug notify communication like user's imap/sieve communications bellow ?
I'm totally out of ideas :-/
Thanks and best regards
J.Karliak
Dne 2024-05-23 10:23, Josef Karliak via Info napsal:
Ehh, my mistake in the configuration - "connection refused" is not relevant - stupid font/background colors
Anyway - imap/sieve debug logs do not complains to any errors.
l /var/spool/imap/config/log/testuser/
celkem 460
drwxr-xr-x 2 cyrus mail 4096 23. kvě 10.12 ./
drwxr-xr-x 3 cyrus mail 4096 23. kvě 10.01 ../
-rw------- 1 cyrus mail 435786 23. kvě 10.19 imap-25820
-rw------- 1 cyrus mail 5249 23. kvě 10.03 imap-27339
-rw------- 1 cyrus mail 899 23. kvě 10.03 sieve-27178
-rw------- 1 cyrus mail 899 23. kvě 10.03 sieve-27206
-rw------- 1 cyrus mail 1102 23. kvě 10.03 sieve-27259
It is able to debug the "notify" socket ? Or its communication ?
Thanks and best regards
JK
On 2024-05-23 06:46, Josef Karliak via Info wrote:
Good morning,
I tried to run notify with debug - I've found this in system log :
2024-05-22T11:50:15.135686+02:00 imapserver lmtp[6199]: NOTIFY(EVENT): unable to sendto() socket: Connection refused
2024-05-22T11:50:15.135767+02:00 imapserver lmtp[6199]: NOTIFY(EVENT): unable to sendto() socket: Connection refused
2024-05-22T11:50:15.135786+02:00 imapserver lmtp[6199]: Delivered: <cmu-lmtpd-6199-1716371415-0@imapserver> to mailbox: user.testuser
2024-05-22T11:50:15.135810+02:00 imapserver lmtp[6199]: NOTIFY(MAIL, testuser, INBOX): unable to sendto() socket: Connection refused
2024-05-22T11:50:15.135826+02:00 imapserver lmtp[6199]: NOTIFY(SIEVE, testuser): unable to sendto() socket: Connection refused
Whai I missed ?
Thanks and best regards
JK
On 2024-05-20 10:36, Josef Karliak via Info wrote:
Good morning,
yes, the path in the config is the same :
/etc/cyrus.conf: notify cmd="notifyd" listen="/var/spool/imap/config/socket/notify" proto="udp" prefork=1
/etc/imapd.conf:notifysocket: /var/spool/imap/config/socket/notify
And also the notify socket exists:
l /var/spool/imap/config/socket/notify
srwxrwxrwx 1 root root 0 17. kvě 06.35 /var/spool/imap/config/socket/notify=
I'm out of ideas :-/
thanks
JK
On 2024-05-16 11:25, Vladas Palubinskas via Info wrote:
2024-05-16 11:21 Josef Karliak via Info:
Notify socket is set in imapd.conf
"notifysocket: /var/spool/imap/config/socket/notify",
the socket exists, idled sockets too
Does this entry match the same path in cyrus.conf?
In my case (Cyrus IMAP 3.8.2 on FreeBSD 14R), it is
# this is required if using notifications
notify cmd="notifyd" listen="/var/cyrus/socket/notify" proto="udp" prefork=1
You should probably replace my
/cyrus/ with your
/spool/imap/config/.
Vladas
https://vladas.palubinskas.lt/