Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Troubleshooting qmail [Solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
eXt
n00b
n00b
Posts: 66
Joined: Sun Oct 09, 2005 10:35 pm
Location: Sweden
Contact:
Contact eXt
Website

Troubleshooting qmail [Solved]

  • Quote

Post by eXt » Wed Mar 28, 2007 7:13 pm

Hi, I emerged mail-mta/netqmail-1.05-r5 on my mailserver which was working correctly before upgrading. I ran into some problems which I managed to fix. It's working except with some mails that just disappears.

/var/log/qmail/qmail-smtpd/current contains lines like:

Code: Select all

@40000000460abcf70e178564 tcpserver: status: 1/40
@40000000460abcf70e179cd4 tcpserver: pid 5555 from *.*.*.*
@40000000460abcf70fc1ed8c tcpserver: ok 5555 *.*.com:*.*.*.*:25 *.*.com:*.*.*.*::22955
@40000000460abcf7141dfc7c tcpserver: end 5555 status 256
@40000000460abcf7141e17d4 tcpserver: status: 0/40
But nothing is written to /var/log/qmail/qmail-send/current or /var/log/messages and the mail is not delivered to my inbox. About half of the mail does this. I have no idea how to troubleshoot this. Any idea?

Also, I am using qmail, spamassassin, clamav, qmail-scanner and vpopmail.
Last edited by eXt on Tue Apr 03, 2007 1:04 pm, edited 1 time in total.
Top
Decibels
Veteran
Veteran
User avatar
Posts: 1635
Joined: Fri Aug 16, 2002 12:51 am
Location: U.S.A.

  • Quote

Post by Decibels » Sat Mar 31, 2007 5:01 am

Well, not sure how much help I can be. I have qmail running fine for years, but only using it for internal cron mail. But what I do have is the Qmail Handbook.
It says that since your showing 'ok' and nonzero exit status that the most common cause of this is the server sending a message with 'bare linefeeds'.
Which is apparently '\n' and not using '\r\n'

Say if you use recordio in your /var/qmail/supervise/qmail-smtpd/run file you'll might be able to isolate the problem. But book is little different than the gentoo script.
So first try to use something like wireshark to see if you can catch anything first.

Or if you need to use recordio. Found an example like the book on the internet: http://www.webservertalk.com/message1071702.html
instead of writing it all down from the book.

Hope this helps.
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Top
eXt
n00b
n00b
Posts: 66
Joined: Sun Oct 09, 2005 10:35 pm
Location: Sweden
Contact:
Contact eXt
Website

  • Quote

Post by eXt » Sun Apr 01, 2007 9:32 pm

The problem seems to be with TLS sessions

Code: Select all

 4000000046101f8f05453094 22938 > (454 TLS connection failed: error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher (#4.3.0)
Is there something wrong with openssl maybe? Or have I misconfigured the certificate?
Top
Decibels
Veteran
Veteran
User avatar
Posts: 1635
Joined: Fri Aug 16, 2002 12:51 am
Location: U.S.A.

  • Quote

Post by Decibels » Tue Apr 03, 2007 12:21 pm

Not sure.
Try these: http://inoa.net/qmail-tls/debug.html
http://iain.cx/ssl/?qmailtls
http://gentoo-wiki.com/QmailRocksOnGent ... w_SSL_Link
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Top
eXt
n00b
n00b
Posts: 66
Joined: Sun Oct 09, 2005 10:35 pm
Location: Sweden
Contact:
Contact eXt
Website

  • Quote

Post by eXt » Tue Apr 03, 2007 1:04 pm

Running "openssl s_client -starttls smtp -crlf -connect localhost:25" as written at http://inoa.net/qmail-tls/debug.html helped me to solve it.

When running the above command it I got a more helpful error message so I could google a bit. It seems a qmail may need a list of ciphers in /var/qmail/control/tlsclientciphers and /var/qmail/control/tlsserverciphers which I didn't have.

By running these commands one may create those files:

Code: Select all

# openssl ciphers > /var/qmail/control/tlsclientciphers
# openssl ciphers > /var/qmail/control/tlsserverciphers
Working perfectly now! Thanks!
Top
Decibels
Veteran
Veteran
User avatar
Posts: 1635
Joined: Fri Aug 16, 2002 12:51 am
Location: U.S.A.

  • Quote

Post by Decibels » Tue Apr 03, 2007 2:39 pm

Glad you got it. :)
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic