Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => Linux Servers Support => Topic started by: raghavachary on May 28, 2004, 06:55:36 AM
-
Hi,
I wanted to receive mails from mail server located remotely and my clients doesn't connected to internet... i have a linuxbox which is connected to internet and configured as local DNS as well mail server.
Presently i able to send and receive mails within intranet.
My users have an account in remotely located mail server, so i want to fetch those mails to linux box and then my clients should receive through locally configured mail server.
I heard that fetchmail will serve the purpose.
Can any one help me on this.. ?
:arrow:
-
You need to install and configure fetchmail when you want to download your clients messages. All point is to configure .fetchmailrc file in /root/.
It should be something like this:
poll "pop3.%ISP%.com"
protocol pop3
username "%username%"
password "%password%"
mda "/usr/bin/sendmail -d %s"
user "%username%" is "%user%" - on Server Linux
password "%password%" - password for remote mailbox
Important: all clients should have own account on server linux.
-
Hi aleksander,
Thanks for your help...
1. i didn't find any file called .fetchmailrc in my or root's home directory... so i have cretated a file called gatemail in root's home dir.. and issured the following command.
here is my gatemail information....
poll "mail.some.com"
protocol pop3
username "user_pop"
password "paswd_pop"
mda "/usr/bin/sendmail -d"
user "localuser"
password "passwd"
[root@knowledge root]# fetchmail -f /root/gatemail
fetchmail: Server CommonName mismatch: IceWarp Software != mail.some.com
fetchmail: Server CommonName mismatch: IceWarp Software != mail.some.com
2 messages for user at mail.some.com (8909 octets).
reading message user@mail.some.com:1 of 2 (6096 octets) sh: line 1: /usr/bin/sendmail: No such file or directory
...fetchmail: SIGPIPE thrown from an MDA or a stream socket error
fetchmail: socket error while delivering to SMTP host mail.some.com
fetchmail: Query status=2 (SOCKET)
fetchmail: Server CommonName mismatch: IceWarp Software != mail.some.com
fetchmail: Server CommonName mismatch: IceWarp Software != mail.some.com
fetchmail: Authorization failure on localuser@mail.some.com
fetchmail: Query status=3 (AUTHFAIL)
Here are my questions .. ..
1. I am using username called "user" to logon to the remotely located mail server (user@mail.some.com).
2. I am using a username called "localuser" to receive mails from user "user"(localuser).
Could you pls send me a detailed information ...?
Thanks
:arrow:
-
If you want to see .anyfile then you must to check view hidden files in the View tab.
Fetchmail use only .fetchmailrc file.
user "%username ISP%" is "%localuser%" - on Server Linux
password "%password ISP%" - password for remote mailbox
with this information you define who is who.
one of commands for fetching mail is:
fetchmail -v -a
-------------------
Just ask! :D
-
Hi
I knew that.. hidden files will be with .file.. but it's not there in eaither root's home directory nor anywhere else.. !!!
I tried uninstalling and installing fetchmail... but ?
why do we use fetchmailconf ??? is it required to run fetchmail.. .. ?
Thanks :arrow:
-
I use fetchmail-6.2.5. To configure .fetchmailrc file you can type:
/root/fetchmail-6.2.5/contrib/RCS/fetchsetup,v,
just enter your data and manualy input
user "%username ISP%" is "%localuser%" - on Server Linux
password "%password ISP%" - password for remote mailbox
in the end.
---------------------------
Just ask! :D