AW: Re: Cyrus 2.4.9 doesn't run on none standard ports
Dan White schrieb: > On 23/06/11 22:12 +0200, Klemens Puritscher wrote: > >Hello, > > > >I'm using cyrus-imapd(currently 2.3.16) for many years and I'm quiet > happy with it. > >Now I'm testing the new 2.4.9 version - SRPMS from Simon Matter. > > > >Based on historical reasons the lmtpd should run on port 26. > >...but the lmtpd didn't start. > >Only when I use the standard port 24 it will work. > > > >My "/etc/cyrus.conf": > > > >That works: (lmtpd processes starts an listen on port 24) > > lmtp cmd="lmtpd -a" listen=24 prefork=5 maxchild=200 > > > >that not: (no lmtpd starts...) > > lmtp cmd="lmtpd -a" listen=26 prefork=5 maxchild=200 > > > >The same with pop3d (for testing...): > >That works: > > pop3 cmd="pop3d" listen=110 prefork=3 > > > >That works not: (no pop3d starts...) > > pop3 cmd="pop3d" listen=110 prefork=3 > > What error are you seeing in syslog with this configuration? > Try running master with '-D'. > > Do you see port 26 open in the output of: > > netstat -an | grep LISTEN No. > Do you experience the same problem if you use: > > lmtp cmd="lmtpd -a" listen="lmtp" prefork=5 maxchild=200 > > and then update your /etc/services with an lmtp entry for port 26? Yes, that was my "normal" configuration. I've changed the lmtp port from 24 to 26 in /etc/services and uses the service-name. Now, I've already found the bug. The init.d script by Simon Matter makes the problem. When I use `/usr/lib/cyrus-imapd/cyrus-master -C /etc/imapd.conf -M /etc/cyrus.conf -p /var/run/cyrus-master.pid -d` at the CLI, then is no problem: the lmtpd listen on port 26. Now I must check the init-script... thanks for you reply. kr Klemens > -- > Dan White Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Cyrus 2.4.9 doesn't run on none standard ports
Hello, I'm using cyrus-imapd(currently 2.3.16) for many years and I'm quiet happy with it. Now I'm testing the new 2.4.9 version - SRPMS from Simon Matter. Based on historical reasons the lmtpd should run on port 26. ...but the lmtpd didn't start. Only when I use the standard port 24 it will work. My "/etc/cyrus.conf": That works: (lmtpd processes starts an listen on port 24) lmtp cmd="lmtpd -a" listen=24 prefork=5 maxchild=200 that not: (no lmtpd starts...) lmtp cmd="lmtpd -a" listen=26 prefork=5 maxchild=200 The same with pop3d (for testing...): That works: pop3 cmd="pop3d" listen=110 prefork=3 That works not: (no pop3d starts...) pop3 cmd="pop3d" listen=110 prefork=3 Any ideas? kr Klemens Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
AW: Re: AW: Re: Message contains NUL charac ters - howto dump?
Markus Rebensburg schrieb: > Klemens Puritscher schrieb: > > Phil Brutsche schrieb: > > > >> The error message is being created by the LMTP service - NUL > characters > >> aren't valid in ASCII messages. The email in question is being > generated > >> incorrectly somewhere, somehow. > >> > > > > thanks for your reply. > > I know that in the email must be a NUL character, but I cannot see > this NUL character during a tcpdump. > > > > Do you know, or someone else in this list, who can I safe find this > NUL character? > > > > > Maybe it is a problem of lines ine the email which are longer than the > standard allows. Cyrus has a fixed buffer for each line in the email. If > the line is longer than this buffer lmtp inserts a terminating string > character (NUL) itself. This could be the reason you cannot see the > Character in the tcp stream of your mail. > We have the same problem with the NUL character here produced by replies > to emails with some HTML Attachments which have only one linebreak in > the whole file. thanks for this hint. This possibility should I have already fixed, in my exim-config: [...] acl_check_data: deny message = Line too long regex= ^.{4000,} accept [...] (IMHO is the max. line lenght in emails 4000 characters.) Are there other possibilities for the lmtp error "Message contains NUL characters"? regards, Klemens > Regards, > Markus > >> What you need to do is either have the MTA reject the message during > the > >> DATA portion of the SMTP transaction, or have the MTA remove the NUL > >> characters before it passes the message on to the LMTP service. > >> > > > > Yes, this will be the next step. > > > > > >> Your email headers indicate you are using Postfix as your MTA, and I > am > >> not familiar enough with that to tell you how to do what is necessary. > > >> > > > > Yes, that's right for outgoing emails. > > The MTA for incoming emails (mx host) is exim. > > > > regards, > > Klemens > > > > > > > >> Klemens Puritscher wrote: > >> > >>> Hello, > >>> > >>> I have a problem with one of our customers. > >>> When he forwards an email with the thunderbird email client (windows > >>> version), the lmtp-daemon on my cyrus-imapd (v2.3.13) rejects those > >>> emails with the error "554 5.6.0 Message contains NUL characters". > >>> ...ok, that's clear, there are "NUL" characters in the email. > >>> > >>> But I would show my customer, where the "NUL" character is. > >>> > >>> For tests, I generate a testmail, with "echo -e > >>> "From:\nTo:\nSubject: > >>> test\n\ntest\test\n.\n" > mail_with_NUL.txt > >>> > >>> Now I dump the lmtp-session on the cyrus-imapd host with: > >>> tcpdump -vv -XX -s 65535 -n -i eth1 "port lmtp > >>> > >>> and I see the "NUL" character: > >>> ... > >>> 0x0230: 7065 6564 2e61 740d 0a0d 0a74 6573 7400 peed.at > > >>> > >> test. > >> > >>> 0x0240: 7465 7374 0d0a 2e0d 0a test. > >>> ... > >>> 65 = e > >>> 73 = s > >>> 74 = t > >>> 00 = NUL > >>> > >>> ...ok, fine, I can find the "NUL" character. > >>> > >>> But when I dump the lmtp-session with the customer email (which > get's > >>> the error "554 5.6.0 Message contains NUL characters"), I cannot > find > >>> this "NUL" character. > >>> > >>> Can someone tell me, what I did wrong? > >>> > >>> Thanks in advance. > >>> > >>> Klemens > >>> > >>> > >>> Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > >>> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > >>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > >>> > >> -- > >> > >> Phil Brutsche > >> p...@optimumdata.com > >> > > > > > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
AW: Re: Message contains NUL characters - howto dump?
Phil Brutsche schrieb: > The error message is being created by the LMTP service - NUL characters > aren't valid in ASCII messages. The email in question is being generated > incorrectly somewhere, somehow. thanks for your reply. I know that in the email must be a NUL character, but I cannot see this NUL character during a tcpdump. Do you know, or someone else in this list, who can I safe find this NUL character? > What you need to do is either have the MTA reject the message during the > DATA portion of the SMTP transaction, or have the MTA remove the NUL > characters before it passes the message on to the LMTP service. Yes, this will be the next step. > Your email headers indicate you are using Postfix as your MTA, and I am > not familiar enough with that to tell you how to do what is necessary. Yes, that's right for outgoing emails. The MTA for incoming emails (mx host) is exim. regards, Klemens > Klemens Puritscher wrote: > > Hello, > > > > I have a problem with one of our customers. > > When he forwards an email with the thunderbird email client (windows > > version), the lmtp-daemon on my cyrus-imapd (v2.3.13) rejects those > > emails with the error "554 5.6.0 Message contains NUL characters". > > ...ok, that's clear, there are "NUL" characters in the email. > > > > But I would show my customer, where the "NUL" character is. > > > > For tests, I generate a testmail, with "echo -e > > "From:\nTo:\nSubject: > > test\n\ntest\test\n.\n" > mail_with_NUL.txt > > > > Now I dump the lmtp-session on the cyrus-imapd host with: > > tcpdump -vv -XX -s 65535 -n -i eth1 "port lmtp > > > > and I see the "NUL" character: > > ... > > 0x0230: 7065 6564 2e61 740d 0a0d 0a74 6573 7400 peed.at > test. > > 0x0240: 7465 7374 0d0a 2e0d 0a test. > > ... > > 65 = e > > 73 = s > > 74 = t > > 00 = NUL > > > > ...ok, fine, I can find the "NUL" character. > > > > But when I dump the lmtp-session with the customer email (which get's > > the error "554 5.6.0 Message contains NUL characters"), I cannot find > > this "NUL" character. > > > > Can someone tell me, what I did wrong? > > > > Thanks in advance. > > > > Klemens > > > > > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > -- > > Phil Brutsche > p...@optimumdata.com Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
WG: Message contains NUL characters - howto dump?
Please, can somebody help me? Maybe, it's a problem in the cyrus lmtp-daemon? (I don't think so...) thx Klemens - Weitergeleitete Nachricht - Datum: Wed, 15 Apr 2009 16:18:46 +0200 (CEST) Von: Klemens Puritscher An: info-cyrus@lists.andrew.cmu.edu Betreff: *POSSIBLE SPAM* Message contains NUL characters - howto dump? Hello, I have a problem with one of our customers. When he forwards an email with the thunderbird email client (windows version), the lmtp-daemon on my cyrus-imapd (v2.3.13) rejects those emails with the error "554 5.6.0 Message contains NUL characters". ...ok, that's clear, there are "NUL" characters in the email. But I would show my customer, where the "NUL" character is. For tests, I generate a testmail, with "echo -e "From:\nTo:\nSubject: test\n\ntest\test\n.\n" > mail_with_NUL.txt Now I dump the lmtp-session on the cyrus-imapd host with: tcpdump -vv -XX -s 65535 -n -i eth1 "port lmtp and I see the "NUL" character: ... 0x0230: 7065 6564 2e61 740d 0a0d 0a74 6573 7400 peed.attest. 0x0240: 7465 7374 0d0a 2e0d 0a test. ... 65 = e 73 = s 74 = t 00 = NUL ...ok, fine, I can find the "NUL" character. But when I dump the lmtp-session with the customer email (which get's the error "554 5.6.0 Message contains NUL characters"), I cannot find this "NUL" character. Can someone tell me, what I did wrong? Thanks in advance. Klemens Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Message contains NUL characters - howto dump?
Hello, I have a problem with one of our customers. When he forwards an email with the thunderbird email client (windows version), the lmtp-daemon on my cyrus-imapd (v2.3.13) rejects those emails with the error "554 5.6.0 Message contains NUL characters". ...ok, that's clear, there are "NUL" characters in the email. But I would show my customer, where the "NUL" character is. For tests, I generate a testmail, with "echo -e "From:\nTo:\nSubject: test\n\ntest\test\n.\n" > mail_with_NUL.txt Now I dump the lmtp-session on the cyrus-imapd host with: tcpdump -vv -XX -s 65535 -n -i eth1 "port lmtp and I see the "NUL" character: ... 0x0230: 7065 6564 2e61 740d 0a0d 0a74 6573 7400 peed.attest. 0x0240: 7465 7374 0d0a 2e0d 0a test. ... 65 = e 73 = s 74 = t 00 = NUL ...ok, fine, I can find the "NUL" character. But when I dump the lmtp-session with the customer email (which get's the error "554 5.6.0 Message contains NUL characters"), I cannot find this "NUL" character. Can someone tell me, what I did wrong? Thanks in advance. Klemens Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html