|
Home > Archive > Red Hat Configuration > January 2004 > access me@localhost.localdomain via pop3 protocol
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
access me@localhost.localdomain via pop3 protocol
|
|
|
| In linux we all have our local mail id like
ravi@localhost.localdomain
I have read this mail using the mail command or using pine.
I was wondering if there was a way of accessing this email
via a pop3 protocol.
Is there a way?
TIA.
--
main(){char s[37]="CSbwjAjocpy/mw!PS!sbwjAeftqbnnfe/dpn";
int i;for(i=0;i<36;putchar(s[i++]-1));return 0;}
| |
| Alexander Dalloz 2004-01-23, 7:24 pm |
| On Thu, 27 Nov 2003 23:57:43 +0530 Ravi wrote:
quote:
> In linux we all have our local mail id like
> ravi@localhost.localdomain
>
> I have read this mail using the mail command or using pine.
>
> I was wondering if there was a way of accessing this email
> via a pop3 protocol.
>
> Is there a way?
>
> TIA.
Just run the uw-imap daemon which comes with Redhat, which allows IMAP and
POP3 connects.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
|
| On Thu, 27 Nov 2003 20:06:24 +0100, Alexander Dalloz <alexander.dalloz@uni-
bielefeld.de> wrote:
quote:
> On Thu, 27 Nov 2003 23:57:43 +0530 Ravi wrote:
>
>
> Just run the uw-imap daemon which comes with Redhat, which allows IMAP
> and
> POP3 connects.
I have already installed this package but I am not able to figure out how
to run it.
Is there a man page or howto that I an read?
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
| |
| Hendrik-Jan Agterkamp 2004-01-23, 7:24 pm |
| Alexander Dalloz wrote:
quote:
> On Thu, 27 Nov 2003 23:57:43 +0530 Ravi wrote:
>
>
> Just run the uw-imap daemon which comes with Redhat, which allows IMAP and
> POP3 connects.
have a look in /etc/xinet.d/ipop3 , edit the file,
which should speak for itself (yes -> no) and after that do a
/etc/init.d/xinetd restart, c'est tout.
Hendrik
| |
|
| On Thu, 27 Nov 2003 19:58:15 GMT, Hendrik-Jan Agterkamp <no@spam.com>
wrote:
quote:
> Alexander Dalloz wrote:
>
>
> have a look in /etc/xinet.d/ipop3 , edit the file, which should speak for
> itself (yes -> no) and after that do a /etc/init.d/xinetd restart, c'est
> tout.
Oh! thank you so much. That worked. I cant believe it was that simple 
Thanks again. I am able to access ravi@localhost.localdomain but I am not
able to access root@localhost.localdomain 
One last problem. How can I send mail to my localhos.localdomain account
using a mail client using smtp at 127.0.0.1
I am able to send mail using 'sendmail' but how can I send mail using
clients that donot support sendmail.
TIA.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
| |
| Hendrik-Jan Agterkamp 2004-01-23, 7:24 pm |
| Ravi wrote:
quote:
> On Thu, 27 Nov 2003 19:58:15 GMT, Hendrik-Jan Agterkamp <no@spam.com>
> wrote:
>
>
> Oh! thank you so much. That worked. I cant believe it was that simple 
> Thanks again. I am able to access ravi@localhost.localdomain but I am not
> able to access root@localhost.localdomain 
if you want to receive all root's mail edit /etc/aliases and add
root: yourloginid
and restart sendmail, e.g. /etc/init.d/sendmail restart
That should redirect all mail for root to you.
quote:
> One last problem. How can I send mail to my localhos.localdomain account
> using a mail client using smtp at 127.0.0.1
quote:
> I am able to send mail using 'sendmail' but how can I send mail using
> clients that donot support sendmail.
Not entirely sure what the problem is here
smtp (port 25) to localhost should do it really on the localhost machine,
Or are you trying to send mail to the 'localhost' from another machine?
If that is the case then you need to do more, like editing
/etc/mail/sendmail.mc, run the make in that directory after the edit,
restart sendmail again as above, and you might need to blow a hole
in the firewall for port 25, you can use redhat-config-security for
that. It might help do some reading up on sendmail www.sendmail.org
Can you do a 'telnet localhost 25'? E.g do you see some sendmail
related stuff when you do that?
% telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 and more nonesense
If not then the sendmail daemon is not running -
run redhat-config-services.
sendmail is a pain but once it works it's brilliant :-)
anyways hours of fun on a rainy day
Hendrik
| |
|
| On Fri, 28 Nov 2003 09:47:14 GMT, Hendrik-Jan Agterkamp <no@spam.com>
wrote:quote:
>
> if you want to receive all root's mail edit /etc/aliases and add
>
> root: yourloginid
No I donot want to redirect root's mail to my email id but I want to be
able to access roots account.
The pop3 server accepts roots login name but when I send the correct
password It says bad login
login is : root
If I am not wrong.
quote:
> and restart sendmail, e.g. /etc/init.d/sendmail restart
> That should redirect all mail for root to you.
>
>
>
> Not entirely sure what the problem is here
> smtp (port 25) to localhost should do it really on the localhost machine,
> Or are you trying to send mail to the 'localhost' from another machine?
> If that is the case then you need to do more, like editing
> /etc/mail/sendmail.mc, run the make in that directory after the edit,
> restart sendmail again as above, and you might need to blow a hole in the
> firewall for port 25, you can use redhat-config-security for that. It
> might help do some reading up on sendmail www.sendmail.org
>
> Can you do a 'telnet localhost 25'? E.g do you see some sendmail related
> stuff when you do that?
>
> % telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 and more nonesense
>
> If not then the sendmail daemon is not running - run redhat-config-
> services.
>
> sendmail is a pain but once it works it's brilliant :-)
> anyways hours of fun on a rainy day
> Hendrik
Dont shout at me. But I posted without trying. I thought that I might have
to install an smtp server. It actually worked. :0)
Thanks.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
| |
| Hendrik-Jan Agterkamp 2004-01-23, 7:24 pm |
| Ravi wrote:
quote:
> On Fri, 28 Nov 2003 09:47:14 GMT, Hendrik-Jan Agterkamp <no@spam.com>
> wrote:
>
> No I donot want to redirect root's mail to my email id but I want to be
> able to access roots account.
>
> The pop3 server accepts roots login name but when I send the correct
> password It says bad login
>
> login is : root
>
> If I am not wrong.
After googling 'pop3 root' and brushing off my german I found
out that pop3 doesn't allow users with id < 100 , root is 0 !
So that's very most likely the case here. Makes sence from a
security point of view. So you could try getting the pop3
sources and hack it but I personally would just add the
root: ravi
it basically does the same. Awell
quote:
>
> Dont shout at me. But I posted without trying. I thought that I might have
> to install an smtp server. It actually worked. :0)
LOL, happens all the time :-) see sendmail is brilliant ;-)
Hendrik
| |
|
| On Fri, 28 Nov 2003 12:49:40 GMT, Hendrik-Jan Agterkamp
<no@spam.com> wrote:
quote:
>Ravi wrote:
>
>
>After googling 'pop3 root' and brushing off my german I found
>out that pop3 doesn't allow users with id < 100 , root is 0 !
>So that's very most likely the case here. Makes sence from a
>security point of view. So you could try getting the pop3
>sources and hack it but I personally would just add the
>
>root: ravi
>
>it basically does the same. Awell
Ok 
quote:
>
>LOL, happens all the time :-) see sendmail is brilliant ;-)
>Hendrik
I noticed it is annonying at times. When I send mail it
always tries without noticing that there is no internet
connection. How can I configure it to send only when 'dial
up networking' is online?
Also it sets the return path to ravi@localhost.localdomain
and most servers reject my mail - invalid domain.
--
main(){char s[37]="CSbwjAjocpy/mw!PS!sbwjAeftqbnnfe/dpn";
int i;for(i=0;i<36;putchar(s[i++]-1));return 0;}
| |
| Hendrik-Jan Agterkamp 2004-01-23, 7:24 pm |
| Ravi wrote:quote:
> I noticed it is annonying at times. When I send mail it
> always tries without noticing that there is no internet
> connection. How can I configure it to send only when 'dial
> up networking' is online?
sendmail does buffering for a week or so until it can
send the messages - a fantastic heritage from the good old
days, so if you use say kmail to drop mail
with smtp to localhost and there is no connection
then that might work. Once you connect do
sendmail -q
quote:
> Also it sets the return path to ravi@localhost.localdomain
> and most servers reject my mail - invalid domain.
A lot of servers reject mail from dynamic IP addresses for spam
reasons. I had the same problem several months ago when I set up
my sendmail (you once I was newbie too You might have to
use SMARTHOST to drop your mail to the smtp from your ISP
provider so that your mail appears to come from a static
(trusted) domain, e.g in sendmail.mc add
define(`SMART_HOST',`smtp:ispproviderssm
tphostdomain')
If they require you to add the following line to /etc/mail/access
AuthInfo:ispproviderssmtphostdomain "U:username" "I:username" "P:password"
"R:ispproviderssmtphostdomain" "M:PLAIN"
for plain login - not really secure (PLAIN password) so
chmod 600 /etc/mail/access . If they don't accept PLAIN passwords
then do some google searches on it.
Hey check www.dyndns.com for a free domain name, say ravi.is-a-geek.com,
Try http://checkip.dyndns.org to find your current IP address.
Cuz I feel your next step will be httpd perhaps :-)
Hendrik
|
|
|
|
|