LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-26-2013, 05:18 PM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
Question heirloom mailx and POP3


I would like to copy all the e-mail messages in my POP3 server to a single file in my PC with heirloom mailx. Content of .mailrc in my home directory is following:

Code:
user@T60:~$ cat .mailrc 
account myaccount {
set folder=pop3://myuser@mydomain.com
set from="myuser@mydomain.com"
set smtp=mail.mydomain.com
}
user@T60:~$
Now if I execute "mailx -A myaccount", then I receive that I have no new mail:

Code:
user@T60:~$ mailx -A myaccount
No mail for user
user@T60:~$
If I tcpdump traffic to mydomain.com, then there is none. Setup in this topic seems to be very similar. Am I doing something wrong?

Last edited by m4rtin; 09-26-2013 at 05:39 PM.
 
Old 09-29-2013, 03:39 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by m4rtin View Post
Now if I execute "mailx -A myaccount", then I receive that I have no new mail:

Code:
user@T60:~$ mailx -A myaccount
No mail for user
user@T60:~$
- Ensure your account settings including settings like TLS usage, initial mailbox are right.
- Invoke mailx with the debug flag to see what's going on behind the screens:
Code:
user@T60:~$ mailx -A myaccount -d 2>&1 | tee /tmp/mailx.debug
then check "/tmp/mailx.debug" for clues.
 
Old 09-29-2013, 12:37 PM   #3
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by unSpawn View Post
- Ensure your account settings including settings like TLS usage, initial mailbox are right.
- Invoke mailx with the debug flag to see what's going on behind the screens:
Code:
user@T60:~$ mailx -A myaccount -d 2>&1 | tee /tmp/mailx.debug
then check "/tmp/mailx.debug" for clues.
unSpawn, TLS/SSL is not used. If I execute the mailx with the debug flag, following is logged to mailx.debug file:

Code:
user@T60:~$ cat /tmp/mailx.debug
user = user, homedir = /home/user
No mail for user
user@T60:~$
At the time, when I execute "mailx -A myaccount -d" I have a tcpdump("tcpdump -nei wlan0 port 110") running and no packages are captured. In addition, the "No mail for user" message appears immediately. In a nutshell, for some reason, mailx does not try to contact the POP3 server at mydomain.com
 
Old 10-01-2013, 03:43 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Oddly enough I can't get it to work either and stracing it doesn't show a clue. Would you be willing to try another client other than Fetchmail then I'd suggest getmail. If you do set "verbose = 1" and point "message_log" to a valid path and file name for debugging purposes.
 
  


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
fake pop3 server to capture pop3 passwords frater Programming 2 03-25-2012 02:59 AM
TO ANYONE USING MAILX (mailx 12.1). stf92 Linux - Software 22 07-08-2010 09:44 PM
mailx pramka SUSE / openSUSE 3 05-01-2008 04:18 PM
configuring heirloom mailx still unsuccessful-- why? Shouldnt it be simple? okos Linux - Software 5 04-09-2008 01:32 AM
mailx csaunders Red Hat 1 05-23-2007 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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