Discussion:
[PERDITION-USERS] BAD Invalid tag, mate
M. Rodrigo Monteiro
2015-02-02 17:21:27 UTC
Permalink
Hi.

I'm new to Perdition...
Last week I configured 2 Perdition servers to handle imap proxy from a
Zimbra 7.2 Server.
I've tested on PC (Thunderbird), Android and Iphone. Everything good.
Today Iphone is not working. PC and Android is fine.
The version, log and conf is below.

[***@050 perdition]# ls /usr/src/
debug kernels perdition-1.18 postfix-2.11.3 vanessa_adt-0.0.8
vanessa_logger-0.0.8 vanessa_socket-0.0.10

# maillog
Feb 2 14:06:15 050 perdition[19519]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:15 050 perdition[19519]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:15 050 perdition[19519]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\377\377
s\377\"\377s\031\026\377\377\377\377\377\377\377?H\
377\377\377\377\377\377\377\032\377\377\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\
017\377\016\377\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:15 050 perdition[19520]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:15 050 perdition[19520]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:15 050 perdition[19520]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\3777\377\377\377\377j$\377\377v\022\377\377(\377\377\377w\t
\377\377\377\377\177W\001;-\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\017\377\016\
377\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:15 050 perdition[19521]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:16 050 perdition[19521]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:16 050 perdition[19521]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\377\377\377i\377\377\377\377\***@8p
\377k\377\377pxR\377A\37
7\026\377\377\377>\377\377\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\017\377\016\3
77\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain
v.br\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:17 050 perdition[19522]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:17 050 perdition[19522]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:17 050 perdition[19522]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\377a\377\377\377\377k\377|\377\377\377\377\377g\377\026?\37
7\377\033\377\377\377\377\377\377\377X\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\0
17\377\016\377\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:17 050 perdition[19523]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:17 050 perdition[19523]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:17 050 perdition[19523]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\377\025\377\377a\'\f\377\377\377bAE\377\177\377\3777\377U\3
77G(\037\377h\377r\377\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\017\377\016\377\r
\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld
\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:17 050 perdition[19524]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:17 050 perdition[19524]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:17 050 perdition[19524]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\3775\377\377\377O~\377\377\377m,\006\n\024=\377\377\0212\377>\035\024\377\377\377\377\377\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\017\377\016\377\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:18 050 perdition[19519]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:18 050 perdition[19520]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:19 050 perdition[19521]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:19 050 perdition[19525]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:20 050 perdition[19525]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:20 050 perdition[19525]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\3773\377qc\003`\377\377\0020\001\377y;\377\377\377H\377\377\377@
\'\377\377z\377\377\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\017\377\016\377\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:20 050 perdition[19522]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:20 050 perdition[19526]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:20 050 perdition[19526]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:20 050 perdition[19526]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\377\377\377|64\377\002\377a\377q\377T>\3774a\377\377\016\377\377]\037.9\377\377\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\017\377\016\377\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:20 050 perdition[19523]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:20 050 perdition[19527]: Connect: 179.171.122.121->SERVER_IP
Feb 2 14:06:20 050 perdition[19527]: SELF: "* OK IMAP4 Ready
179-171-122-121.user.vivozap.com.br 000208fb\r\n"
Feb 2 14:06:20 050 perdition[19527]: CLIENT:
"\026\003\001\000\377\001\000\000\377\003\001T\377\377\3775\377f\377\377y\377\377\023+\377{\3779\3779\377\025Q0[Ye\3777\377h\377\000\000J\000\377\377$\377#\377\n\377\t\377\b\377(\377\'\377\024\377\023\377\022\377&\377%\377\005\377\004\377\003\377*\377)\377\017\377\016\377\r\000k\000g\0009\0003\000\026\000=\000<\0005\000/\000\n\377\a\377\021\377\002\377\f\000\005\000\004\001\000\0000\000\000\000\032\000\030\000\000\025mails.mydomain.tld\000\n\000\b\000\006\000\027\000\030\000\031\000\v\000\002\001\000"
Feb 2 14:06:20 050 perdition[19524]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:21 050 perdition[19519]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:21 050 perdition[19519]: Exiting on signal 13
Feb 2 14:06:21 050 perdition[19520]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:21 050 perdition[19520]: Exiting on signal 13
Feb 2 14:06:22 050 perdition[19521]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:22 050 perdition[19521]: Exiting on signal 13
Feb 2 14:06:23 050 perdition[19525]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:23 050 perdition[19522]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:23 050 perdition[19522]: Exiting on signal 13
Feb 2 14:06:23 050 perdition[19526]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:23 050 perdition[19523]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:23 050 perdition[19523]: Exiting on signal 13
Feb 2 14:06:23 050 perdition[19527]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:23 050 perdition[19524]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:23 050 perdition[19524]: Exiting on signal 13
Feb 2 14:06:26 050 perdition[19525]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:26 050 perdition[19525]: Exiting on signal 13
Feb 2 14:06:26 050 perdition[19526]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:26 050 perdition[19526]: Exiting on signal 13
Feb 2 14:06:26 050 perdition[19527]: SELF: "* BAD Invalid tag, mate\r\n"
Feb 2 14:06:26 050 perdition[19527]: Exiting on signal 13



[***@050 perdition]# cat imap4.conf
#debug
connection_logging
#imap_capability IMAP4 IMAP4REV1
imap_capability "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES IDLE SORT QUOTA ACL ACL2=UNION STARTTLS"
protocol IMAP4
outgoing_server 172.26.2.47:143
timeout 1800
ssl_mode tls_listen
ssl_ca_accept_self_signed
ssl_cert_file /opt/perdition/etc/perdition/mails.cert
ssl_cert_accept_self_signed
ssl_cert_accept_expired
ssl_cert_accept_not_yet_valid
ssl_key_file /opt/perdition/etc/perdition/mails.key
ssl_no_cert_verify
ssl_no_cn_verify

[***@050 perdition]# cat imap4s.conf
#debug
connection_logging
#imap_capability IMAP4 IMAP4REV1
imap_capability "IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES IDLE SORT QUOTA ACL ACL2=UNION STARTTLS"
protocol IMAP4S
outgoing_server 172.26.2.47:143
timeout 1800
ssl_mode tls_listen
ssl_ca_accept_self_signed
ssl_cert_file /opt/perdition/etc/perdition/mails.cert
ssl_cert_accept_self_signed
ssl_cert_accept_expired
ssl_cert_accept_not_yet_valid
ssl_key_file /opt/perdition/etc/perdition/mails.key
ssl_no_cert_verify
ssl_no_cn_verify



M. Rodrigo Monteiro
<***@rodrigomonteiro.net> <http://twitter.com/MarcioRodrigoM/>
<http://www.facebook.com/mrodrigom/>
<http://br.linkedin.com/pub/m%C3%A1rcio-rodrigo-de-oliveira-monteiro/28/491/3b8>
<http://foursquare.com/marciorodrigom> <***@rodrigomonteiro.net>
<***@rodrigomonteiro.net>
"Free as in Freedom, not free as in free beer"
"As we are liberated from our own fear, our presence automatically
liberates others"
Linux User # 403730

Pense antes de imprimir. Think before printing.

AVISO LEGAL
Esta mensagem é destinada exclusivamente para a(s) pessoa(s) a quem é
dirigida, podendo conter informação confidencial e/ou legalmente
privilegiada. Se você não for destinatário desta mensagem, desde já fica
notificado de abster-se a divulgar, copiar, distribuir, examinar ou, de
qualquer forma, utilizar a informação contida nesta mensagem, por ser
ilegal. Caso você tenha recebido esta mensagem por engano, pedimos que nos
retorne este E-Mail, promovendo, desde logo, a eliminação do seu conteúdo
em sua base de dados, registros ou sistema de controle. Fica desprovida de
eficácia e validade a mensagem que contiver vínculos obrigacionais,
expedida por quem não detenha poderes de representação.

LEGAL ADVICE
This message is exclusively destined for the people to whom it is directed,
and it can bear private and/or legally exceptional information. If you are
not addressee of this message, since now you are advised to not release,
copy, distribute, check or, otherwise, use the information contained in
this message, because it is illegal. If you received this message by
mistake, we ask you to return this email, making possible, as soon as
possible, the elimination of its contents of your database, registrations
or controls system. The message that bears any mandatory links, issued by
someone who has no representation powers, shall be null or void.
Matthias Hunstock
2015-02-03 09:17:12 UTC
Permalink
Bom dia,
Post by M. Rodrigo Monteiro
....
ssl_mode tls_listen
I really think this should be "ssl_listen" for the ssl_mode of imap4s.
Maybe this is the source of your problem, if the iPhone connects to the
IMAPS service.


Matthias
--
Dipl.-Inf. Matthias Hunstock
UniRZ der TU Ilmenau, Raum 07
Tel.: +49 3677 69-1289
Continue reading on narkive:
Loading...