Discarded mail: Bad file descriptor
Hello together,
I just checked my logs and noticed an error message from mlmmj that caught my attention. One spam message contained a more than malformed "From:" line:
-----------------------------------------------------------
From: "Servidor de e-mail - Tecmicro Sistemas"@Servidor,
[email protected], [email protected], [email protected], [email protected], [email protected]
-----------------------------------------------------------
This will lead to the following error message:
Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:688: Discarding /var/spool/mlmmj/intra2net-tech/incoming/291e75865c83d9cf due to invalid From:: Bad file descriptor Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:691: fromemails.emaillist[0] = Servidor de e-mail - Tecmicro Sistemas@Servidor : Bad file descriptor Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:691: fromemails.emaillist[1] = [email protected] : Bad file descriptor Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:691: fromemails.emaillist[2] = [email protected] : Bad file descriptor Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:691: fromemails.emaillist[3] = [email protected] : Bad file descriptor Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:691: fromemails.emaillist[4] = [email protected] : Bad file descriptor Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:691: fromemails.emaillist[5] = [email protected] : Bad file descriptor
I'm surprised by the "Bad file descriptor" entry. The size is 3487 bytes, so the message should be processed in memory. Any idea what that could be?
Cheers,
Thomas
Quoted 4 lines · Thomas Jarosch
I just checked my logs and noticed an error message from mlmmj that caught my attention. One spam message contained a more than malformed "From:" line:
Jun 24 06:13:51 intranator /usr/bin/mlmmj-process[9274]: mlmmj-process.c:688: Discarding /var/spool/mlmmj/intra2net-tech/incoming/291e75865c83d9cf due to invalid From:: Bad file descriptor
...
Quoted 2 lines
I'm surprised by the "Bad file descriptor" entry. The size is 3487 bytes, so the message should be processed in memory. Any idea what that could be?
It's due to a log system which always append an error description (based on errno), even in cases where the error is not a system error. Ignore the "Bad file descriptor" part of the log entry. Remind me when I get home, and I will remove that message (reset errno before logging).
Morten
Signature · 2 lines
Morten K. Poulsen <[email protected]> http://www.afdelingp.dk/
Hello Morten,
Quoted 8 lines · On Tuesday, 24. June 2008 16:02:30 Morten K. Poulsen wrote:
Quoted 3 lines
I'm surprised by the "Bad file descriptor" entry. The size is 3487 bytes, so the message should be processed in memory. Any idea what that could be?
It's due to a log system which always append an error description (based on errno), even in cases where the error is not a system error. Ignore the "Bad file descriptor" part of the log entry. Remind me when I get home, and I will remove that message (reset errno before logging).
Thanks for clearing this up. In the meantime, enjoy your vacation, I hope there's a beach nearby ;-)
Thomas
Quoted 2 lines · Thomas Jarosch
Thanks for clearing this up. In the meantime, enjoy your vacation, I hope there's a beach nearby ;-)
if just there is a Carlsberg around the corner its not bad :-)
Signature · 2 lines
Benny Pedersen Need more webspace ? http://www.servage.net/?coupon=cust37098
Quoted 3 lines · Benny Pedersen
Quoted 2 lines · Thomas Jarosch
Thanks for clearing this up. In the meantime, enjoy your vacation, I hope there's a beach nearby ;-)
We started in Florida at Miami Beach, so I've been at the beach ;-)
Right now I'm in Maryland, on my way to DC and New York City, but I pool sided all day yesterday... No beach here...
Quoted 1 line
if just there is a Carlsberg around the corner its not bad :-)
Haven't had a Carlsberg on the trip. But I've had a few Piña Coladas, miscellaneous Daquiraís, and quite a few G-Ts :-)
Which reminds me... We're three well-behaved geeks staying at a hotel in NYC the first week of July. Do you know of a good party, where we could celebrate Independence Day? We'll bring beer ;-)
http://www.afdelingp.dk/fourth-of-july/
Morten
Signature · 2 lines
Morten K. Poulsen <[email protected]> http://www.afdelingp.dk/