Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having some strange things going on my email server.
I have my own domain, alitrix.nl
Which includes IMAP (dovecot) and postfix (smpt and the relay part).
With fetchmail I login on some POP3 accounts and get the mails and put them in the IMAP mailbox of my own home-dir (so I have a "central" place for my mail)
Everything works fine, until here.
With /etc/procmailrc I check the mail headers and put the mail in the correct directory.
I've installed Thunderbird and configured my IMAP server.
I added identies into Thunderbird, so I can send as alitrix@alitrix.nl, postfix@alitrix.nl, etc. etc. With the same IMAP account.
The strange part is, for some reason my email is looping back as well
alitrix@gmail.com receives the email, just like it should.
Raw email:
Code:
Delivered-To: alitrix@gmail.com
Received: by 10.151.85.17 with SMTP id n17cs180247ybl;
Fri, 17 Oct 2008 13:47:48 -0700 (PDT)
Received: by 10.66.220.12 with SMTP id s12mr418204ugg.5.1224276466809;
Fri, 17 Oct 2008 13:47:46 -0700 (PDT)
Return-Path: <alitrix@alitrix.nl>
Received: from kdiss.alitrix.nl (217.170.21.50 [217.170.21.50])
by mx.google.com with ESMTP id k30si1117910ugc.43.2008.10.17.13.47.46;
Fri, 17 Oct 2008 13:47:46 -0700 (PDT)
Received-SPF: neutral (google.com: 217.170.21.50 is
neither permitted nor denied by best guess record for domain of alitrix@alitrix.nl)
client-ip=217.170.21.50;
Authentication-Results: mx.google.com; spf=neutral (google.com: 217.170.21.50 is neither
permitted nor denied by best guess record for domain of alitrix@alitrix.nl) smtp.mail=alitrix@alitrix.nl
Received: by kdiss.alitrix.nl (Postfix, from userid 1007)
id 97DEB45827A; Fri, 17 Oct 2008 22:55:33 +0200 (CEST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on r1k7s19.kdiss.com
X-Spam-Level:
X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
autolearn=ham version=3.2.4
Received: from [192.168.1.76] (195-240-191-88.ip.telfort.nl [195.240.191.88])
by kdiss.alitrix.nl (Postfix) with ESMTPA id 553B9458172
for <alitrix@gmail.com>; Fri, 17 Oct 2008 22:55:18 +0200 (CEST)
Message-ID: <48F8F9B4.6070604@alitrix.nl>
Date: Fri, 17 Oct 2008 22:46:44 +0200
From: AliTrix <alitrix@alitrix.nl>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: alitrix@gmail.com
Subject: Test LQ
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Loop, why?
In Thunderbird I cee the same mail coming back as well
Raw email:
Code:
Return-Path: <alitrix@alitrix.nl>
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on r1k7s19.kdiss.com
X-Spam-Level:
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
autolearn=ham version=3.2.4
X-Original-To: alitrix@alitrix.nl
Delivered-To: alitrix@r1k7s19.kdiss.com
Received: by kdiss.alitrix.nl (Postfix, from userid 1007)
id 97DEB45827A; Fri, 17 Oct 2008 22:55:33 +0200 (CEST)
Received: from [192.168.1.76] (195-240-191-88.ip.telfort.nl [195.240.191.88])
by kdiss.alitrix.nl (Postfix) with ESMTPA id 553B9458172
for <alitrix@gmail.com>; Fri, 17 Oct 2008 22:55:18 +0200 (CEST)
Message-ID: <48F8F9B4.6070604@alitrix.nl>
Date: Fri, 17 Oct 2008 22:46:44 +0200
From: AliTrix <alitrix@alitrix.nl>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: alitrix@gmail.com
Subject: Test LQ
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Loop, why?
Well, this part:
Oct 17 23:40:36 r1k7s19 postfix/local[9715]: 6516F45827A: to=<alitrix@r1k7s19.kdiss.com>, orig_to=<alitrix@alitrix.nl>, relay=local, delay=30, delays=15/0.01/0/15,
dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Doesn't look good. Why if the From-address = alitrix@alitrix.nl, it gets back to the server? (r1k7s19.kdiss.com = servername + host)
I didn't understand that part.
That's all I have, I dont have any other aliases nor alias files.
I only put them in that table if I need any alias/forward.
I checked my gmail, I dont have a forward there as well.
I think it's the alias-table that is getting used, but I dont understand why postfix is doing a check on the From-address?
Doesn't sound logic to me, cause this way the email is looping and then it loops that mail and that mail, etc.
# Added by installer for initial user
root: serveradmin
Nothing special inside
I've monitored the queries, check this: Sending mail to alitrix...@hotmail.com
Code:
081018 13:09:59 78473 Connect postfix@localhost on postfix
78473 Query SELECT goto FROM alias WHERE address='alitrix.nl'
78474 Connect postfix@localhost on postfix
78474 Query SELECT domain AS virtual FROM domain WHERE domain='alitrix.nl'
78473 Query SELECT goto FROM alias WHERE address='hotmail.com'
78474 Query SELECT domain AS virtual FROM domain WHERE domain='hotmail.com'
78473 Query SELECT goto FROM alias WHERE address='alitrixxxx@hotmail.com'
78473 Query SELECT goto FROM alias WHERE address='@hotmail.com'
78473 Query SELECT goto FROM alias WHERE address='alitrixxxx@hotmail.com'
78473 Query SELECT goto FROM alias WHERE address='@hotmail.com'
The mail looping back
Code:
081018 13:10:14 78475 Connect postfix@localhost on postfix
78475 Query SELECT goto FROM alias WHERE address='alitrixxxx@hotmail.com'
78475 Query SELECT goto FROM alias WHERE address='@hotmail.com'
78475 Query SELECT goto FROM alias WHERE address='alitrix@alitrix.nl'
78475 Query SELECT goto FROM alias WHERE address='alitrix@r1k7s19.kdiss.com'
78475 Query SELECT goto FROM alias WHERE address='alitrix'
78475 Query SELECT goto FROM alias WHERE address='@r1k7s19.kdiss.com'
78475 Query SELECT goto FROM alias WHERE address='hotmail.com'
78476 Connect postfix@localhost on postfix
78476 Query SELECT domain AS virtual FROM domain WHERE domain='hotmail.com'
78475 Query SELECT goto FROM alias WHERE address='r1k7s19.kdiss.com'
78476 Query SELECT domain AS virtual FROM domain WHERE domain='r1k7s19.kdiss.com'
You see, the first time it's doing a check on alitrix.nl, but it's a From-address.
Really strange...
I'll have a look later in the day if you don't hear anything.
What is the intention of the virtual forwardings? I don't use SQL tables, but it looks to me like you are copying anything to altrix.nl to altrix (which I assume is a valid user on your domain - the kdiss one)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.