LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-27-2010, 02:02 PM   #1
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Rep: Reputation: 30
Fetchmail attempts to deliver to non-existent users with localhost as domain


I'm using slackware 13.0, 32-bit with sendmail, fetchmail, procmail and
mutt.

This is a recent install of slack, for several years, I have used a
similar configuration on ubuntu, but with postfix as the MTA instead
of sendmail.

My system has one user: tim. Email sent to me at any of my
email addresses that have 'tim' has the host component, I.E., tim@domain1.com, tim@domain2.com etc are received without any problem.
mail sent to email addresses such as test@domain1.com, test@domain2.com,
tim-sl@domain1.com, tim-sl@domain2.com (where the host part is not 'tim)
are received, but along with that delivery is the delivery of an error message. Below is a copy of such a delivery.
Note: my internal domain is bart.johnson.com. My 'external' domain is johnsons-web.com
Code:
Date: Sat, 27 Feb 2010 10:11:00 -0900
From: Mail Delivery System <MAILER-DAEMON@bart.johnson.com>
To: tim@bart.johnson.com
Subject: Mail delivery failed: returning message to sender

[-- Attachment #1 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.3K --]

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error.

Reason: Some addresses were rejected by the MDA fetchmail forwards to.

The following address(es) failed:
test@localhost
   SMTP error: 550 5.1.1 <test@localhost>... User unknown

[-- Attachment #2 --]
[-- Type: message/delivery-status, Encoding: 7bit, Size: 0.2K --]

Reporting-MTA: dns; bart.johnson.com

Final-Recipient: rfc822; test@localhost
Last-Attempt-Date: Sat, 27 Feb 2010 10:11:00 -0900 (AKST)
Action: failed
Status: 5.1.1
Diagnostic-Code: 550 5.1.1 <test@localhost>... User unknown

[-- Attachment #3 --]
[-- Type: text/rfc822-headers, Encoding: 7bit, Size: 1.6K --]

Received: from mx-b.cniweb.net (mx-b.cniweb.net [208.218.214.231])
 by postman.cniweb.net (Sun Internet Mail Server sims.4.0.2001.07.26.11.50.p9)
 with ESMTP id <0KYI00624L1VYN@postman.cniweb.net> for
 test?johnsons-web.com@sims-ms-daemon (ORCPT rfc822;test@johnsons-web.com)
 ; Sat, 27 Feb 2010 14:05:55 -0500 (EST)
Received: from bart.johnson.com (xxx-xxx-x-xx.mtaonline.net [64.4.232.191])
        by mx-b.cniweb.net (8.14.3/8.14.3) with ESMTP id o1RK6qB1006613 for
 <test@johnsons-web.com>; Sat, 27 Feb 2010 15:07:00 -0500 (EST)
Received: from bart.johnson.com (localhost [127.0.0.1])
        by bart.johnson.com (8.14.3/8.14.3) with ESMTP id o1RJATVx019342        for
 <test@johnsons-web.com>; Sat, 27 Feb 2010 10:10:29 -0900
Received: (from tim@localhost)  by bart.johnson.com (8.14.3/8.14.3/Submit)
 id o1RJATPu019341      for test@johnsons-web.com; Sat, 27 Feb 2010 10:10:29 -0900
Date: Sat, 27 Feb 2010 10:10:29 -0900
From: Tim Johnson <tim@johnsons-web.com>
Subject: testing delivery
To: test@johnsons-web.com
Message-id: <20100227191028.GP3699@johnsons-web.com>
Organization: AkWebsoft
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-disposition: inline
User-Agent: Mutt/1.5.19 (2009-01-05)
Received-SPF: None (mx-b.cniweb.net: domain of tim@johnsons-web.com     does not
 designate permitted sender hosts)      receiver=mx-b.cniweb.net;
 client-ip=xxx.xxx.xxx.xxx;        envelope-from=<tim@johnsons-web.com>;
 helo=bart.johnson.com;
X-SPF-Scan-By: smf-spf v2.0.2 - http://smfs.sf.net/
X-Antivirus: checked in 0.004sec at mx-b.cniweb.net ([208.218.214.231]) by
 smf-clamd v1.2.1 - http://smfs.sf.net/
X-Authentication-warning: bart.johnson.com: tim set sender to
 tim@johnsons-web.com using -f
An annoying but not crippling problem. any help in
making it go away will garner my undying gratitude.
thanks
tim
 
Old 02-27-2010, 02:26 PM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
This looks interesting but I'm not sure how much help I can offer. The obvious bit is this:
Code:
SMTP error: 550 5.1.1 <test@localhost>... User unknown
Which, as I guess you know, is saying that there is no such user as test@localhost.

My guess is your fetchmail polls a server and then *something* is steering the mail to 'test@localhost' which is an unknown user. I'm guessing that tim@localhost may work???

I'd take a look at your fetchmailrc file and see where it's dumping the mail. Is it directly into procmail? Is it into sendmail?

You say you receive the mail - is that as a result of the bounce or does it end up on the system some place?
 
1 members found this post helpful.
Old 02-27-2010, 04:08 PM   #3
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by spampig View Post
This looks interesting but I'm not sure how much help I can offer. The obvious bit is this:
Code:
SMTP error: 550 5.1.1 <test@localhost>... User unknown
Which, as I guess you know, is saying that there is no such user as test@localhost.

My guess is your fetchmail polls a server and then *something* is steering the mail to 'test@localhost' which is an unknown user. I'm guessing that tim@localhost may work???

I'd take a look at your fetchmailrc file and see where it's dumping the mail. Is it directly into procmail? Is it into sendmail?

You say you receive the mail - is that as a result of the bounce or does it end up on the system some place?
I do receive the mail. It appears to this non-email-geek that fetchmail is
attempting to deliver a separate copy to test@localhost. As well
as with tim-sl@localhost and tim-lt@localhost
fetchmailrc follows
Code:
set logfile /home/tim/.fetchmaillog
set postmaster "tim"
set no bouncemail
set properties ""
set daemon 900
poll postman.johnsons-web.com
       user 'test+johnsons-web.com' there with password 'xxxxxxxx' is 'test' here
       user 'tim+johnsons-web.com' there with password 'xxxxxx' is 'tim' here
       user 'tim-sl+johnsons-web.com' there with password 'xxxxxxx' is 'tim-sl+johnsons-web.com' here
       user 'tim-lt+johnsons-web.com' there with password 'xxxxxxx' is 'tim-lt+johnsons-web.com' here

poll mail.mtaonline.net
       user 'tjohnson@mtaonline.net' there with password 'xxxxxxxxx' is tjohnson_mtaonline.net here

poll 205.149.128.225
       user 'tjohnson' there with password 'xxxxxxx'
This is the same configuration I used on ubuntu without problems.
BTW: I created a user 'test' and found that mail was then delivered
to /var/mail/test as a file with a munged title reflecting the subject.
I have since deleted user 'test'
thanks
tim
 
Old 02-27-2010, 04:57 PM   #4
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
I think I have the solution:
The fetchmailrc entries need the proper 'here' clauses, corrected
to 'tim' where included and added as
Quote:
is 'tim' here
Where not included.
At least preliminary tests are good now. Any further comments are
still welcomed
thanks
 
Old 02-28-2010, 04:03 AM   #5
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Glad you found the solution Tim :-)
 
Old 02-28-2010, 10:10 AM   #6
Tim Johnson
Member
 
Registered: Oct 2004
Location: Palmer, Alaska
Distribution: ubuntu 10.04, Slack 13.0/32-bit
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by spampig View Post
Glad you found the solution Tim :-)
Actually, I'm surprised I didn't have the same problems on ubuntu.
cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fetchmail Problem with Virtualmin Domain users mail4vijay Linux - General 2 12-21-2009 11:45 AM
fetchmail can't deliver to mailboxes in /var/mail turbo_acura Red Hat 1 11-10-2007 11:35 PM
Qmail: forward non-existent user to remote domain? pushpraj Linux - Distributions 0 07-11-2006 03:40 AM
How to handle non-existent users in qmail-toaster I have created a virtual domain goldenswan.com, all mail to pushpraj Linux - Distributions 0 07-07-2006 05:46 AM
ssh login attempts from localhost?! sovietpower Linux - Security 2 05-29-2005 01:19 AM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration