LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-11-2006, 09:51 AM   #1
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Fetchmail/Sendmail problems - some domains don't resolve (and other problems)


Hi people, I have set up Fetchmail to check and download my mail from my mail provider's POP3 server, so I can read it with Pine. The mail gets delivered to my "local" mailbox via Sendmail. This sort of works OK, but I'm having a few problems:

1. Some messages don't get downloaded because the domains don't resolve. Here's an example from my fetchmaillog:

fetchmail: reading message ***@******:1 of 1 (22511 octets)
fetchmail: SMTP error: 451 4.1.8 Domain of sender address RealTimeEmail+USRT--n
3EUaIcPBq@bounces.amazon.com does not resolve
fetchmail: not flushed

I've put stars where my username and the hostname should be. I've read that this is not to do with Fetchmail itself, but with Sendmail. What can I do to force it to download the messages?

2. Every time I switch my machine on, I run Fetchmail manually in daemon mode. I've found that it's possible to get it to run automatically on boot, by putting it in /etc/rc.d/rc.local. If I do this, it'll run as root and so will my mail still be delivered to my regular user's mailbox, or root's. I would hope the former, because of the following lines that are in my ~/.fetchmailrc:

poll ********** with proto POP3
user '******' there with password '*******' is 'nick' here

If I do want it started at boot, do I just need to put it in /etc/rc.d/rc.local, telling it which fetchmailrc to use?

3. Sometimes (actually, this happens quite a lot), when mail does get downloaded, I don't get a notification in the terminal saying, "You have mail in /var/mail/nick". If I just happen to run Pine for the sake of it, that's when I know I have mail. The notifications would be nice! Any ideas? Obviously I know that you have to "use" the terminal and can't just leave it open and expect the notifications to come.

All help appreciated.
 
Old 10-11-2006, 10:18 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
The following works:

dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
dnl FEATURE(`accept_unresolvable_domains')dnl

It's in /usr/share/sendmail/cf/cf/sendmail-slackware.mc. The config file obviously has to be regenerated from that mc file.

Any ideas about the other questions?

Thanks.

Last edited by Nylex; 10-11-2006 at 10:26 AM.
 
Old 10-11-2006, 11:35 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Hmm, if I add the line

/usr/bin/fetchmail -f /home/nick/.fetchmailrc

to my /etc/rc.d/rc.local, I get the following message when I start Slack:

fetchmail: WARNING: Running as root is discouraged.
File /home/nick/.fetchmailrc must be owned by you.

What can I do?
 
Old 10-13-2006, 11:56 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Actually, I think the notifications are working OK, so it's just starting Fetchmail on boot that's the problem now.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fetchmail-sender domain doesn't resolve tincat2 Linux - Software 5 05-03-2005 08:29 AM
Problems with fetchmail fusebox Linux - Networking 2 01-22-2005 01:54 PM
Problems with FETCHMAIL shoombool_tala Linux - Software 3 07-16-2004 08:11 AM
HELP! Caching DNS server wont resolve .EDU domains? spadesmaster Linux - Networking 0 04-30-2002 10:25 AM
Problems with sendmail and fetchmail pamide Linux - Newbie 6 09-12-2001 02:18 PM


All times are GMT -5. The time now is 03:29 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