LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Qmail, could it be the hardest thing ever? (https://www.linuxquestions.org/questions/linux-software-2/qmail-could-it-be-the-hardest-thing-ever-69005/)

MasterC 06-30-2003 06:21 AM

Qmail, could it be the hardest thing ever?
 
:)

I've been having sooo much trouble with qmail it seems like I'll never figure it out. I've gone through Life With Qmail, and setup everything exactly like I'm supposed to, I am able to start qmail, and am even able to send emails without a hitch from my box (well out to the world anyway).

Receiving emails seems like it's just not working. I'll send post up the message later if it will help (the refusal message), but basically it appears the message just bounces around forever on my server and eventually gets returned by, what appears, to be lack of user (I send it to root).

I guess I just need a little bit of help understanding how users work in qmail, how virtual users work, and how qmail and IMAP server interface?
Also, the alias bit, any help on setting up alias would be greatly appreciated as well.

Plus, if anyone has an easier to follow how-to than Life With Qmail (although that was an excellent tutorial, it seemed WAAAY in depth at points and I think that's where I got lost) that would be nice as well.

:)

Cool

Azmeen 06-30-2003 09:02 AM

Could it instead be your SMTP/IMAP daemon config instead?

If you're able to send out mail, then your Qmail configs are working just fine.

MasterC 06-30-2003 10:42 AM

That's what I would have thought, and I'm going to see if it's something else by eliminating everything else. But for some reason, that I just cannot remember ;) I think it's not a problem elsewhere...

But I will eliminate all other things one by one and see what I find.

Thanks for the reply!

:)

Cool

Pcghost 06-30-2003 03:08 PM

And you are mistaken, but only a little. Sendmail is the hardest thing ever. :-)

Post the rejection notice so we can disect it and maybe figure this out.

david_ross 06-30-2003 03:11 PM

Call it cheating if you will but the webmin module for Qmail is actually very good.
http://www.webmin.com/

MasterC 06-30-2003 07:37 PM

hm...

While trying to regenerate an error message for you guys, I get this in:
/var/log/qmail/smtpd/current:
Code:

@400000003f00d76f0e33e31c /usr/local/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
So now I'm looking into fixing that... ;)

Cool

Azmeen 06-30-2003 07:47 PM

Perchance this thread might help :)

MasterC 06-30-2003 08:00 PM

Here's the message:
Quote:

From: MAILER-DAEMON@mta.everyone.net (Mail Delivery System)
To: MasterC@linuxquestions.net
Subject: Undelivered Mail Returned to Sender
Date: Mon, 30 Jun 2003 17:56:42 -0700
Attachments
Name Type Save View
Part 1 text/plain Save
Part 2.1 text/plain Save

This is the Postfix program at host omta01.mta.everyone.net.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please contact <postmaster@omta01.mta.everyone.net>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<root@curvins.com>: host curvins.com said: 554 <root@curvins.com>:
Recipient
address rejected: Relay access denied


Thanks for all the replies so far :)

Cool

MasterC 06-30-2003 08:01 PM

Quote:

Originally posted by Azmeen
Perchance this thread might help :)
Awesome, thank you, I will look into that right now! :)

Cool

MasterC 06-30-2003 08:11 PM

Woohoo!! Thanks, that totally fixed my error :) Now I am getting this:
Quote:

This is the Postfix program at host omta01.mta.everyone.net.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please contact <postmaster@omta01.mta.everyone.net>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<root@curvins.com>: host curvins.com said: 553 sorry, that domain isn't
in my
list of allowed rcpthosts (#5.7.1)


:)

Cool

MasterC 06-30-2003 08:23 PM

:) Now I have added my domain to my /var/qmail/control/rcpthosts, and this is the new error message that I can't troubleshoot as easily ;) Let me say here again, thank you for all your replies so far!

It's probably gonna be a 2 pager:
Quote:

Hi. This is the qmail-send program at curvins.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<root@curvins.com>:
4.65.24.211 failed after I sent the message.
Remote host said: 554 too many hops, this message is looping (#5.4.6)

--- Below this line is a copy of the message.

Return-Path: <MasterC@linuxquestions.net>
Received: (qmail 20314 invoked from network); 1 Jul 2003 01:13:37 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:37 -0000
Received: (qmail 3230 invoked from network); 1 Jul 2003 01:13:37 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:37 -0000
Received: (qmail 28759 invoked from network); 1 Jul 2003 01:13:36 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:36 -0000
Received: (qmail 24375 invoked from network); 1 Jul 2003 01:13:36 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:36 -0000
Received: (qmail 392 invoked from network); 1 Jul 2003 01:13:36 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:36 -0000
Received: (qmail 4501 invoked from network); 1 Jul 2003 01:13:35 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:35 -0000
Received: (qmail 19545 invoked from network); 1 Jul 2003 01:13:35 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:35 -0000
Received: (qmail 6968 invoked from network); 1 Jul 2003 01:13:34 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:34 -0000
Received: (qmail 17680 invoked from network); 1 Jul 2003 01:13:34 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:34 -0000
Received: (qmail 5152 invoked from network); 1 Jul 2003 01:13:34 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:34 -0000
Received: (qmail 19216 invoked from network); 1 Jul 2003 01:13:33 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:33 -0000
Received: (qmail 29794 invoked from network); 1 Jul 2003 01:13:33 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:33 -0000
Received: (qmail 13459 invoked from network); 1 Jul 2003 01:13:33 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:33 -0000
Received: (qmail 23772 invoked from network); 1 Jul 2003 01:13:32 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:32 -0000
Received: (qmail 24491 invoked from network); 1 Jul 2003 01:13:32 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:32 -0000
Received: (qmail 3621 invoked from network); 1 Jul 2003 01:13:32 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:32 -0000
Received: (qmail 29297 invoked from network); 1 Jul 2003 01:13:31 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:31 -0000
Received: (qmail 32280 invoked from network); 1 Jul 2003 01:13:31 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:31 -0000
Received: (qmail 11564 invoked from network); 1 Jul 2003 01:13:31 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:31 -0000
Received: (qmail 25868 invoked from network); 1 Jul 2003 01:13:31 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:31 -0000
Received: (qmail 20491 invoked from network); 1 Jul 2003 01:13:30 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:30 -0000
Received: (qmail 22720 invoked from network); 1 Jul 2003 01:13:30 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:30 -0000
Received: (qmail 27008 invoked from network); 1 Jul 2003 01:13:29 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:29 -0000
Received: (qmail 9118 invoked from network); 1 Jul 2003 01:13:29 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:29 -0000
Received: (qmail 29652 invoked from network); 1 Jul 2003 01:13:29 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:29 -0000
Received: (qmail 19617 invoked from network); 1 Jul 2003 01:13:29 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:29 -0000
Received: (qmail 16134 invoked from network); 1 Jul 2003 01:13:28 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:28 -0000
Received: (qmail 20733 invoked from network); 1 Jul 2003 01:13:28 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:28 -0000
Received: (qmail 6929 invoked from network); 1 Jul 2003 01:13:28 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:28 -0000
Received: (qmail 19652 invoked from network); 1 Jul 2003 01:13:27 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:27 -0000
Received: (qmail 8887 invoked from network); 1 Jul 2003 01:13:27 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:27 -0000
Received: (qmail 21483 invoked from network); 1 Jul 2003 01:13:27 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:27 -0000
Received: (qmail 4514 invoked from network); 1 Jul 2003 01:13:26 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:26 -0000
Received: (qmail 8871 invoked from network); 1 Jul 2003 01:13:26 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:26 -0000
Received: (qmail 21317 invoked from network); 1 Jul 2003 01:13:26 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:26 -0000
Received: (qmail 20239 invoked from network); 1 Jul 2003 01:13:25 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:25 -0000
Received: (qmail 5350 invoked from network); 1 Jul 2003 01:13:25 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:25 -0000
Received: (qmail 26925 invoked from network); 1 Jul 2003 01:13:25 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:25 -0000
Received: (qmail 19015 invoked from network); 1 Jul 2003 01:13:25 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:25 -0000
Received: (qmail 32461 invoked from network); 1 Jul 2003 01:13:24 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:24 -0000
Received: (qmail 15087 invoked from network); 1 Jul 2003 01:13:24 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:24 -0000
Received: (qmail 30012 invoked from network); 1 Jul 2003 01:13:24 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:24 -0000
Received: (qmail 28569 invoked from network); 1 Jul 2003 01:13:24 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:24 -0000
Received: (qmail 15539 invoked from network); 1 Jul 2003 01:13:23 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:23 -0000
Received: (qmail 6111 invoked from network); 1 Jul 2003 01:13:23 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:23 -0000
Received: (qmail 15148 invoked from network); 1 Jul 2003 01:13:23 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:23 -0000
Received: (qmail 1734 invoked from network); 1 Jul 2003 01:13:22 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:22 -0000
Received: (qmail 4047 invoked from network); 1 Jul 2003 01:13:19 -0000
Received: from unknown (HELO curvins.com) (192.168.1.1)
by curvins.com with SMTP; 1 Jul 2003 01:13:19 -0000
Received: (qmail 809 invoked from network); 1 Jul 2003 01:13:12 -0000
Received: from sitemail3.everyone.net (HELO omta01.mta.everyone.net) (216.200.145.37)
by curvins.com with SMTP; 1 Jul 2003 01:13:12 -0000
Received: from sitemail.everyone.net (dsnat [216.200.145.62])
by omta01.mta.everyone.net (Postfix) with ESMTP id 4D1AB3271
for <root@curvins.com>; Mon, 30 Jun 2003 18:13:28 -0700 (PDT)
Received: by sitemail.everyone.net (Postfix, from userid 99)
id 134F14C51; Mon, 30 Jun 2003 18:13:28 -0700 (PDT)
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
X-Mailer: MIME-tools 5.41 (Entity 5.404)
Date: Mon, 30 Jun 2003 18:13:27 -0700 (PDT)
From: Master C <MasterC@linuxquestions.net>
To: root@curvins.com
Subject: SO, yet another test
Reply-To: MasterC@linuxquestions.net
X-Originating-Ip: [4.65.24.211]
Message-Id: <20030701011328.134F14C51@sitemail.everyone.net>

Hmmm

david_ross 07-01-2003 02:55 AM

I think you are allowing your server to accept mail to curvins.com but not to actually deliver it locally.

Try adding:
curvins.com

to:
/etc/qmail/locals

(you config dir may be different)

MasterC 07-01-2003 03:15 AM

Thank you for your reply :)

And you were dead on too :) We are definitely progressing, however I'm now recieving a new error, there can only be so many though right ;)

Here's the message:
Code:

From:  MAILER-DAEMON@curvins.com
 
 
 
 
To:  MasterC@linuxquestions.net
 
 
 
 
Subject:  failure notice
 
 
 
 
Date:  Mon, 30 Jun 2003 19:19:57 -0700
 
 
 
 Attachments
Name Type Save View
Message  text/plain Save 
 
 
 
 
Hi. This is the qmail-send program at curvins.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<root@curvins.com>:
This message is looping: it already has my Delivered-To line. (#5.4.6)

--- Below this line is a copy of the message.

Return-Path: <MasterC@linuxquestions.net>
Received: (qmail 19359 invoked by alias); 1 Jul 2003 02:19:57 -0000
Delivered-To: root@curvins.com
Received: (qmail 15146 invoked from network); 1 Jul 2003 02:19:57 -0000
Received: from sitemail3.everyone.net (HELO omta01.mta.everyone.net) (216.200.145.37)
  by curvins.com with SMTP; 1 Jul 2003 02:19:57 -0000
Received: from sitemail.everyone.net (dsnat [216.200.145.62])
        by omta01.mta.everyone.net (Postfix) with ESMTP id 2FC641C3E83
        for <root@curvins.com>; Mon, 30 Jun 2003 19:20:30 -0700 (PDT)
Received: by sitemail.everyone.net (Postfix, from userid 99)
        id 289E8ABE5; Mon, 30 Jun 2003 19:20:30 -0700 (PDT)
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
X-Mailer: MIME-tools 5.41 (Entity 5.404)
Date: Mon, 30 Jun 2003 19:20:30 -0700 (PDT)
From: Master C <MasterC@linuxquestions.net>
To: root@curvins.com
Subject: Oh, the usual
Reply-To: MasterC@linuxquestions.net
X-Originating-Ip: [4.65.24.211]
Message-Id: <20030701022030.289E8ABE5@sitemail.everyone.net>

testing of course

At which point I've done a google and not come up with much, not anything solid anyway. I'm sorta at a loss again now.

The only thing I can think of is that maybe I don't have my Maildir setup correctly? I have used (my qmail path is /var/qmail) /var/qmail/bin/maildirmake /root/Maildir and it created a Maildir directory in /root with subdirectories "cur new tmp".

I've echoed (or otherwise made sure) ./Maildir/ to /var/qmail/control/defaultdelivery
I've added my domain to all the files in /var/qmail/control that aren't otherwise used (such as defaultdelivery).

David, I'd be glad to give you ssh access for a few if you wanna take a look around. Just email me if you are interested.

Oh, and as a side note, why this is killing me:

I have Postfix installed and working beautifully on another box. However, I've heard a few things about qmail that enticed me to give it a try, one of which was security. I would LOVE to get qmail working, and it's just frastrating me more because I know I could just throw Postfix on there and be done with it in a few hours.

:)

Thanks for the reply again!

Cool

david_ross 07-01-2003 12:30 PM

Do you have mail being forwarded from one account to the other?
Do you have fetchmail running?

I would try creating a user account and sending to that.

MasterC 07-02-2003 03:12 AM

Well, now this is certainly odd?

First up: Thank you for the suggestion!

So I did as told, and fired off an email to my user. I have yet to recieve it (at least not in the users Maildir/new (or any directory in ~/Maildir for that matter )), and worse, I haven't gotten back an error message. It's been nearly an hour! Normally, on my Postfix setup, I get emails within about 15 seconds of when they are sent, so I can only guess it's been sent..

I'll do some log digging, and if I find anything that looks valuable I'll post it up. If anyone has suggestions on what/where to look [for] I'd be happy to read them.

:)

Thanks again!

Cool


All times are GMT -5. The time now is 06:00 PM.