qmail+fetchmail array communication

This is a discussion on qmail+fetchmail array communication within the Tech Board forums, part of the Community Boards category; Hi, I have a setup on my server that uses fetchmail to get the mails from my freemail account. Fetchmail ...

  1. #1
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893

    qmail+fetchmail array communication

    Hi,

    I have a setup on my server that uses fetchmail to get the mails from my freemail account. Fetchmail forwards them to my local qmail, which delivers locally and stores in my mailbox (Maildir format). Dovecot provides IMAP access to the mailbox.

    The array worked perfectly when I went on my holiday (27th). Yesterday evening, though, when I come back, the last mail I get is from 8PM. Everything after that isn't fetched anymore. The log files of fetchmail say this:
    fetchmail: 15 messages for wasti.redl@gmx.net at pop.gmx.net (466045 octets).
    fetchmail: reading message wasti.redl@gmx.net@pop.gmx.net:1 of 15 (3911 octets) ..fetchmail: SMTP connect to localhost failed
    fetchmail: SMTP transaction error while fetching from pop.gmx.net
    fetchmail: Query status=10 (SMTP)
    The log file of qmail-smtpd contains this:
    @4000000041d9855e286db17c tcpserver: status: 1/40
    @4000000041d9855e286dc8ec tcpserver: pid 2624 from 127.0.0.1
    @4000000041d9858c1ec4e26c tcpserver: ok 2624 :127.0.0.1:25 :127.0.0.1::37987
    @4000000041d9858c1ec71104 tcpserver: end 2624 status 256
    @4000000041d9858c1ec714ec tcpserver: status: 0/40
    My firewall (shorewall) is running. It generally allows all connection from the server and the internal network to the outside, with the exception of this rule:
    Code:
    DROP    loc:192.168.1.5 net             tcp     25
    192.168.1.5 is my work computer, not the one where fetchmail and qmail run on (that's 192.168.1.1).

    Configurations are fairly standard. fetchmail uses the user "wasti" as postmaster, which provided reliable delivery in the past.
    tcp.smtpd contains very few active lines:
    127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
    :allow
    192.168.1.1:allow,RELAYCLIENT="",RBLSMTPD=""
    62.178.0.135:allow,RELAYCLIENT="",RBLSMTPD=""

    The last two IPs are the internal and external IPs of the server, respectively.

    rcpthosts has all local names of my server listed.

    Does anyone have suggestions what to do? I want this working again.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #2
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    Can you check the conversation between fetchmail and qmail? You could use tcpdump or ethereal to see what the conversation in 127.0.0.1 is. It looks like qmail isn't running. That's what fetchmail says when I haven't my mail server running.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Ok, I looked into it (telnet to SMTP server).

    When I attempt a connection to localhost:25, tcpserver immediately answers and the connection is established. However, it seems that it takes tcpserver a minute or more to spawn a qmail-smtpd process. (If I wait that long, I finally get an ESMTP message.) Apparently, fetchmail times out before that and thinks that no server is running.

    Any ideas why qmail-smtpd takes so long?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    No idea on that. I don't use it. Have you tried rebooting the machine? Maybe it's swapping out a lot (if updatedb has run while you were away, this could happen if you don't have a lot of RAM), although if this were the case, you would have probably alrady noticed.
    I can't think of any other case where an app would take so much time to react.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    rebooted, didn't help. This ain't Windows, anyway

    No, the PC only ran for a few days anyway (my father accidently unplugged it while I was away), and it has been running for months at a time without ever exhibiting this weird behaviour.

    Everything else (webserver, ...) runs fine.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    >>rebooted, didn't help. This ain't Windows, anyway
    I know, but it was worth a try.

    I don't know what could cause just qmail to react so slow. Is there a way to increase the timeout in fetchmail? (I don't have access to it right now, besides, mine falls back to procmail) Just as a temporary measure 'till you manage to solve it.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 08:25 PM
  2. from 2D array to 1D array
    By cfdprogrammer in forum C Programming
    Replies: 17
    Last Post: 03-24-2009, 11:33 AM
  3. fetchmail with pop3
    By Jaguar in forum Tech Board
    Replies: 3
    Last Post: 09-26-2005, 09:33 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 08:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21