#1  
Old 15th December 2005, 13:39
alienbob alienbob is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fetchmail and/or Alternatives

I have setup Fedora Core 4 and I'm trying to get it to collect mail from a mailbox for my domain. Its a multidrop box, I have a couple of accounts on my new box but things are not working out quite right!

This my fetchmailrc config:

Skip Accountname
proto pop3
auth password
via pop.myisp.com
envelope "x-delivered-to:"
qvirtual "mydomain.com"
user "username"
pass "paswword"
is *

I have dovecot and sendmail installed as per the defaults with the OS and have only made minor changes to the Dovecot config, set it to not accept SSL connections and started both that and sendmail.

I can send mail internally to the system users, but if it comes externally then it is delivered to the fetchmail user rather than being distributed to the named user in the headers!

I have been reading around and it seems that fetchmail is not all that good with handling multidrop headers, seems to be so here, for sure, I'm wondering if anybody might have any suggestions to get this to work a bit better.

Thank you
Reply With Quote
Sponsored Links
  #2  
Old 15th December 2005, 13:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by alienbob
I can send mail internally to the system users, but if it comes externally then it is delivered to the fetchmail user rather than being distributed to the named user in the headers!
I'm a little bit confused about this part. Can you describe more precisely what you do (which server do you use for sending, to which domain do you send, ...)? What's in the mail log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th December 2005, 14:54
alienbob alienbob is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
I'm a little bit confused about this part. Can you describe more precisely what you do (which server do you use for sending, to which domain do you send, ...)? What's in the mail log?
The external (realdomain) server that I use for sending is our Exchange server with the .co.uk domain, the mails are being sent to my .net domain and being fetched by the Fedora box who is gemma.localhost

This could be part of the problem but...

I have used Evolution to send a mail to james@gemma.localhost

"15 10:02:55 gemma sendmail[29085]: jBFA2tgx029085: from=<admin@gemma.localhost>, size=346, class=0, nrcpts=1, msgid=<1134640975.29030.0.camel@gemma.localhost>, proto=ESMTP, daemon=MTA, relay=gemma.localhost [127.0.0.1]
Dec 15 10:02:56 gemma sendmail[29087]: jBFA2tgx029085: to=<james@gemma.localhost>, ctladdr=<admin@gemma.localhost> (501/100), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30560, dsn=2.0.0, stat=Sent"

So it sucessfully used sendmail

When a mail is sent externally this is the log excerpt:

"Dec 13 16:17:37 gemma sendmail[2831]: jBDGHbAv002831: from=<user@realdomain.co.uk>, size=2593, class=0, nrcpts=1, msgid=<A0DD80161BEA9845B8B35B4ACA978C326DAE@samant ha.RTXNetworks.local>, proto=ESMTP, daemon=MTA, relay=gemma.localhost [127.0.0.1]
Dec 13 16:17:37 gemma sendmail[2832]: jBDGHbAv002831: to=<int00067@localhost>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32754, dsn=2.0.0, stat=Sent"

When you look at the headers of the recieved mail you get:

"From line From user@realdomain.co.uk Wed Dec 14 15:03:31 2005
Return-Path: <user@rrealdomain.co.uk>
Received: from localhost (gemma.localhost [127.0.0.1])by gemma.localhost (8.13.4/8.13.4) with ESMTP id jBEF3UBQ018353for <int00067@localhost>; Wed, 14 Dec 2005 15:03:30 GMT
x-previous-hop: 195.224.37.13
Received: from pop3.inty.co.uk [195.224.93.253]by localhost with POP3 (fetchmail-6.2.5)for int00067@localhost (multi-drop); Wed, 14 Dec 2005 15:03:30 +0000 (GMT)
Received: from scan4.he.inty.net (scan4.he.inty.net [195.224.37.13])by hardy.inty.net (8.12.9/8.12.9) with SMTP id jBEF1HQN042553for <james@realdomain.net>; Wed, 14 Dec 2005 15:01:17 GMT
Received: from localhost.localdomain (localhost.he.inty.com [127.0.0.1])by scan4.he.inty.net (Postfix) with ESMTP id 31C08119C74for <james@realdomain.net>; Wed, 14 Dec 2005 15:01:17 +0000 (GMT)
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by mta1.pe.inty.net (Postfix) with ESMTP id A373064CD09 for <james@realdomain.net>; Wed, 14 Dec 2005 15:00:50 +0000 (GMT)
Received: from [88.96.4.235] (helo=rtxnetworks.co.uk) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1EmY7e-0006mi-8p for james@realdomain.net; Wed, 14 Dec 2005 15:00:50 +0000
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C600BF.2BADEFBF"
Subject: TEst 15:00
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Date: Wed, 14 Dec 2005 15:00:49 -0000
Message-ID: <A0DD80161BEA9845B8B35B4ACA978C326DBA@samantha.RTX Networks.local>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: TEst 15:00
thread-index: AcYAvyvJ+aq4XdiSR4OTDqKpKIFIAA==
From: "James Tucker" <user@rrealdomain.co.uk>
To: <james@realdomain.net>
X-Originating-Pythagoras-IP: [88.96.4.235]
X-MDF-SF_NaiveBayes: 0.102374507179588
X-MDF-SF_SpamAssassin: 0.3/3
X-MDF-SF_EmptyMsg: has-subject
X-MDF-SF_SBPHBayes: 0.0
X-MDF-Antispam: NO 44148
X-MDF-HostID: 96
X-Spam-Score: 12.70
X-Skip-Spam-Check: yes
X-Is-Spam: NO
X-Spam-Checked: 44148
X-delivered-to: <james@realdomain.net>
X-Fetchmail-Warning: recipient address james@realdomain.net didn't match any local name"

the int00067@localhost user is a user on the box being used for the pickup account (and to who all the mails keep getting delivered to )

The box hasn't got a resolvable domain as you can see, its just .localhost BUT I have picked up mail from a server running cppop and its distributed as expected so I don't think that that is the issue.

Obviously the "X-Fetchmail-Warning: recipient address james@realdomain.net didn't match any local name" is a bit of a beacon of an error message but it seems to be a red herring as there is a user called james who can accept mail locally and if fetchmail is setup to deliver direct to that mailbox.

Does this help at all?
Reply With Quote
  #4  
Old 15th December 2005, 18:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

So you're sending from your realdomain.co.uk server (Exchange) to the realdomain.net server, and the emails on that server get picked up by your fetchmail server and are delivered to int00067@localhost.

Now what exactly is the problem? So far everything looks ok.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th December 2005, 19:23
alienbob alienbob is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not quite as good as it should be the mails should be delivered to user james not user int00067.

just to clarify the fetchmailrc

user "int00067"
pass "password"
is *


Fetchmail doesn't seem to think that user james exists
Reply With Quote
  #6  
Old 15th December 2005, 21:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

I'd use another /etc/fetchmailrc, something like this:

Code:
# /etc/fetchmailrc for system-wide daemon mode
# This file must be chmod 0600, owner fetchmail

# Daemon configuration
# These two are set in /etc/default/fetchmail
#set daemon        300                # Pool every 5 minutes
#set syslog                        # log through syslog facility
set postmaster  root

set no bouncemail                # avoid loss on 4xx errors
                                # on the other hand, 5xx errors get
                                # more dangerous...

##########################################################################
# Hosts to pool
##########################################################################

# Defaults ===============================================================
# Set antispam to -1, since it is far safer to use that together with
# no bouncemail
defaults:
timeout 300
antispam -1
batchlimit 100

poll <remote_server> protocol POP3 user "<remote_user>" there with password "<remote_password>" is james here fetchall
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 16th December 2005, 13:50
alienbob alienbob is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Its seems to be happy untill it gets to the end of the file:

Code:
sh-3.00$ /usr/bin/fetchmail -v -v
fetchmail:/home/inty00067/.fetchmailrc:26: syntax error at is
Is the fetchmailrc syntax quite version specific?
Reply With Quote
  #8  
Old 16th December 2005, 15:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,490
Thanks: 835
Thanked 5,533 Times in 4,351 Posts
Default

Have you replaced:

<remote_server> with your remote mailserver
<remote_user> with your remote pop3 username
<remote_password> with your remote pop3 password
Reply With Quote
  #9  
Old 16th December 2005, 16:01
alienbob alienbob is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Certainly have!
Reply With Quote
  #10  
Old 20th December 2005, 12:29
alienbob alienbob is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Got it working!

For future reference:
Code:
# /etc/fetchmailrc for system-wide daemon mode
# This file must be chmod 0600, owner fetchmail

# Daemon configuration
# These two are set in /etc/default/fetchmail
#set daemon        300                # Pool every 5 minutes
#set syslog                        # log through syslog facility
set postmaster  root

set no bouncemail                # avoid loss on 4xx errors
                                # on the other hand, 5xx errors get
                                # more dangerous...

##########################################################################
# Hosts to pool
##########################################################################

# Defaults ===============================================================
# Set antispam to -1, since it is far safer to use that together with
# no bouncemail
defaults:
timeout 300
antispam -1
batchlimit 100

poll pop3.mail.server
        proto pop3
        no dns envelope x-delivered-to localdomains localhost gemma.realdomain.net realdomain.net
        user "username"
        pass "pass"
        is *
Had a misconfiguration error with Sendmail, it wasn't setup to accept mail for the realdomain.net so as fetchmail passed it to sendmail it kept bouncing it back to my ISP who then resent it back to me...oops! All fixed now tho.. now onto the IMAP errors that Dovecot seems to be throwing up at me!

Thanks for the pointers
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CommonName mismatch (fetchmail) stiffmeister Server Operation 1 2nd June 2005 17:33
fetchmail configuration lola Installation/Configuration 1 11th May 2005 11:57


All times are GMT +2. The time now is 09:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.