LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fetchmail problem (https://www.linuxquestions.org/questions/linux-newbie-8/fetchmail-problem-834659/)

struggled_newbie 09-26-2010 10:16 PM

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......

prayag_pjs 09-26-2010 11:23 PM

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).

struggled_newbie 09-28-2010 12:47 AM

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 (Post 4109877)
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).


prayag_pjs 09-28-2010 12:51 AM

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!!!

struggled_newbie 09-28-2010 01:06 AM

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 (Post 4111012)
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!!!


struggled_newbie 09-28-2010 01:51 AM

is there any other way?

please help


Quote:

Originally Posted by struggled_newbie (Post 4111024)
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


prayag_pjs 09-28-2010 02:13 AM

Ok

Please let us know why you are not downloading the emails from server directly by setting parameters in email client?
Why relay?

struggled_newbie 09-28-2010 02:34 AM

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 (Post 4111084)
Ok

Please let us know why you are not downloading the emails from server directly by setting parameters in email client?
Why relay?


prayag_pjs 09-28-2010 02:39 AM

Hi,

You have catch-all id?

And please post fetchmail configuration here(u can use example.com domain and user1 as user)

struggled_newbie 09-28-2010 02:46 AM

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 (Post 4111111)
Hi,

You have catch-all id?

And please post fetchmail configuration here(u can use example.com domain and user1 as user)


prayag_pjs 09-28-2010 02:55 AM

Hi,

Refer this link it will be helpful to you

http://souptonuts.sourceforge.net/postfix_tutorial.html

prayag_pjs 09-28-2010 02:59 AM

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

struggled_newbie 09-29-2010 01:53 AM

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 (Post 4111127)
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


prayag_pjs 09-29-2010 01:57 AM

Quote:

Originally Posted by struggled_newbie (Post 4112232)

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!!

struggled_newbie 09-29-2010 02:10 AM

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 (Post 4112239)
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!!



All times are GMT -5. The time now is 05:06 PM.