LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2010, 10:16 PM   #1
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Rep: Reputation: 15
fetchmail problem


Hello Linux Guru's

I have installed release CentOS 5.5 w/ fetchmail services. I've already configured the /.fetchmailrc in the correct format that I've learned from topics and I've checked also the sedmail running status. When I invoke the #fetchmail command this often happens:

fetchmail: WARNING: : Running as root is discouraged.
2 messages for user1 at mx.mailserver.com.ca: (1 of 2) (4353 octets) .....flushed


I have configured two NIC 's One for the public IP and another for the local network, I've tried to use the two IP's in the POP3 and SMTP settings of Mozilla Thunderbird but still user1 can't get messages.


please help......
 
Old 09-26-2010, 11:23 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Virtually all POP clients delete the message on the POP server after it has been downloaded - Otherwise the mailbox just fills up. If you haven't already, install webmin which has an easy-to-use fetchmail configuration module that will allow you to alter this behaviours either globally or on a per-user basis.Fetchmail just downloads the message from the POP3 server, hands it over to Sendmail/Postfix on the local machine and then removes it from the POP3 server. If you want to collect mail directly from your ISPs server than you don't need to use Fetchmail. The mail should be sitting on your machine - If you install a program like uw-imap or dovecot then you should be able to get it (uw-imap has IMAP and POP3 servers, and dovecot is a more advanced IMAP server).
 
Old 09-28-2010, 12:47 AM   #3
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
I've noticed that no maildir is created each of the user in the /home directory, why is that?


Quote:
Originally Posted by prayag_pjs View Post
Virtually all POP clients delete the message on the POP server after it has been downloaded - Otherwise the mailbox just fills up. If you haven't already, install webmin which has an easy-to-use fetchmail configuration module that will allow you to alter this behaviours either globally or on a per-user basis.Fetchmail just downloads the message from the POP3 server, hands it over to Sendmail/Postfix on the local machine and then removes it from the POP3 server. If you want to collect mail directly from your ISPs server than you don't need to use Fetchmail. The mail should be sitting on your machine - If you install a program like uw-imap or dovecot then you should be able to get it (uw-imap has IMAP and POP3 servers, and dovecot is a more advanced IMAP server).
 
Old 09-28-2010, 12:51 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Please let us know what are you trying to do ?
Are you setting up a new mail server?
Is it postfix or sendmail?
Though we know you are using fetchmail but why are you using fetchmail ?
Is it catchall id?
Is your mail server hosted somewhere else and you fetching mails?
Do let us know all these!!!
 
Old 09-28-2010, 01:06 AM   #5
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
thanks for the interest

hello,

thanks for the reply
we have a mail server hear in H.O with qmail services and is hosted by mx.xxxx.com we have a branch that i have replaced the relay client with centos 5.5, the problem is the relay client recieves mail here in h.o (i've even checked in the webmin and it does stored the mail in the centos box) but it does not transfer in the client pc's mozilla thunderbird, I've rotated the thunderbird mail settings in the pop3 with the public ip of the centos box but still it does not recieve mail

centos 5.2

nic 1 = public ip
nic 2 = local network ip (for the transfering of mail to clients)

please help me

Quote:
Originally Posted by prayag_pjs View Post
Hi,

Please let us know what are you trying to do ?
Are you setting up a new mail server?
Is it postfix or sendmail?
Though we know you are using fetchmail but why are you using fetchmail ?
Is it catchall id?
Is your mail server hosted somewhere else and you fetching mails?
Do let us know all these!!!
 
Old 09-28-2010, 01:51 AM   #6
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
is there any other way?

please help


Quote:
Originally Posted by struggled_newbie View Post
hello,

thanks for the reply
we have a mail server hear in H.O with qmail services and is hosted by mx.xxxx.com we have a branch that i have replaced the relay client with centos 5.5, the problem is the relay client recieves mail here in h.o (i've even checked in the webmin and it does stored the mail in the centos box) but it does not transfer in the client pc's mozilla thunderbird, I've rotated the thunderbird mail settings in the pop3 with the public ip of the centos box but still it does not recieve mail

centos 5.2

nic 1 = public ip
nic 2 = local network ip (for the transfering of mail to clients)

please help me
 
Old 09-28-2010, 02:13 AM   #7
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Ok

Please let us know why you are not downloading the emails from server directly by setting parameters in email client?
Why relay?
 
Old 09-28-2010, 02:34 AM   #8
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
the CentOS box serves as a squid proxy for the firewall and thus also
a mail relay box for three pc,

thus anything wrong on my post? why is there appearing "you have posted this thread four times"


anyway sorry to the modulator (thinkster)

Quote:
Originally Posted by prayag_pjs View Post
Ok

Please let us know why you are not downloading the emails from server directly by setting parameters in email client?
Why relay?
 
Old 09-28-2010, 02:39 AM   #9
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

You have catch-all id?

And please post fetchmail configuration here(u can use example.com domain and user1 as user)
 
Old 09-28-2010, 02:46 AM   #10
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
here goes

#less /root/.fetchmailrc


poll mx1.sampledomain.com. proto pop3
user "user1" there has password "user"


This is the configuration sample for my test mail on the CentOS box
for user1.sampledomain.com

Quote:
Originally Posted by prayag_pjs View Post
Hi,

You have catch-all id?

And please post fetchmail configuration here(u can use example.com domain and user1 as user)
 
Old 09-28-2010, 02:55 AM   #11
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Refer this link it will be helpful to you

http://souptonuts.sourceforge.net/postfix_tutorial.html
 
Old 09-28-2010, 02:59 AM   #12
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

You need to configure postfix to create Maildir

vim /etc/postfix/main.cf

home_mailbox = Maildir/

Refer these changes to the /etc/postfix/main.cf file

Quote:
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
myhostname = mail.mymailaddy.net
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 192.168.1.0/24, 127.0.0.0/8
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
alias_maps = hash:/etc/postfix/aliases
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
debug_peer_level = 1
debugger_command = PATH=/usr/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
delay_warning_time = 4
relayhost = smtp.myisp.com
Source :
http://www.jennings.homelinux.net/ma...er_config.html
 
Old 09-29-2010, 01:53 AM   #13
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Hello,

I've tried to install postfix and followed your instruction but still the workstation pc of user1 cant get the mail from CentOS box,

I found a little hint in the CentOS Box's Webmin>Servers>Send Mail Server>User Mailboxes>User1

I saw a yahoo mail like mail interface and it does recieved all my test mail since a day ago,

In the upper right I saw that I assumed that the mail is residing in the
/var/spool/mail/user1 directory,

Am I getting closer to fix this?

Please help me


Quote:
Originally Posted by prayag_pjs View Post
Hi,

You need to configure postfix to create Maildir

vim /etc/postfix/main.cf

home_mailbox = Maildir/

Refer these changes to the /etc/postfix/main.cf file



Source :
http://www.jennings.homelinux.net/ma...er_config.html
 
Old 09-29-2010, 01:57 AM   #14
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Thumbs up

Quote:
Originally Posted by struggled_newbie View Post

Am I getting closer to fix this?

Please help me
Ok fine but in brief tell me you network how it is set now?

Whats your mail server?Whats your relay server?
Whats your postfix configuration?
Also let us know exact error!!
 
Old 09-29-2010, 02:10 AM   #15
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Help

I Guess your mad, I am really a novice in this

Here in our Head Office we have a mail server w/ qmail services, I access it via apache qmail web page for adding and modifying e-mail accounts,
It also serves as the mail storage of mail users, Our mail exchange server is hosted by mx1.sampledomain.com.

Far away from here we have another branch (lets name it brnch2) that I have replaced the mail relay server (formerly Redhat 9 now in CentOS newly installed)

The relay server (CentOS) in branch2 should fetch mails from the qmail server here in Head Office, then once it is stored in the CentOS box the three PC users should download the mails.

the only error is in branch2 the three PC can't get the mails from the CentOS box, seems like the CentOS box can't deliver the mails to the client pc I assumed.


Quote:
Originally Posted by prayag_pjs View Post
Ok fine but in brief tell me you network how it is set now?

Whats your mail server?Whats your relay server?
Whats your postfix configuration?
Also let us know exact error!!
 
  


Reply



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 evaristegalois Linux - Newbie 2 05-22-2010 01:12 PM
fetchmail problem phantom_cyph Linux - Software 1 12-07-2008 07:40 PM
Problem with fetchmail vedang Linux - Server 2 02-21-2008 08:29 PM
Fetchmail problem tkmuthuvel Linux - Networking 1 09-13-2005 08:57 AM
Fetchmail problem NSKL Linux - Software 2 11-19-2003 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration