
2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
![]() |
XMail Forum · Newbies read here ! All about SMTP,MX-Records,DNS etc. |
![]() ![]() ![]() ![]() |
Welcome Guest ( Log In | Register ) | Resend Validation Email |
RaveRod |
Posted: Jan 15 2004, 02:55 PM
|
Newbie ![]() Group: Members Posts: 8 Member No.: 888 Joined: 15-January 04 ![]() |
I use XMail to manage our internal email and the gather all our email from various POP3 accounts externally.
I have recently been asked to add a POP3 account that uses an SSL connection to download email from it. Is there any way to do this using XMail? Neither CLR or APOP work in this situation. I'm just hoping there is a way or it could be a major setback in the use of XMail in our company. |
hschneider |
Posted: Jan 15 2004, 03:47 PM
|
![]() No - I'm not an answering script ... ![]() Group: Admin Posts: 6631 Member No.: 195 Joined: 19-June 02 ![]() |
Hmmm ... Just try to connect by adding ":995" (the POP3_SSL port no.) to your pop3linktab's target server entry. E.g
"@home.bogus.com" "dlibenzi" "domain.com:995" "dlibenzi" "XYZ..." Being very interested in your feedback. -------------------- Bye,
Harald -- Download XMail Queue Manager 1.46 NOW: XMail Server Tools -- Cross platform remote queue management! -- Message analyzing on the fly! -- Builtin diagnostics knowledge base! -- Manages multiple mail queues! Sponsored by CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg |
RaveRod |
Posted: Jan 16 2004, 04:45 AM
|
Newbie ![]() Group: Members Posts: 8 Member No.: 888 Joined: 15-January 04 ![]() |
Unfortunately that doesn't seem to work either. Are there any other ideas on how this could work?
Maybe this functionality could be included in a later release of XMail? |
bim |
Posted: Jan 16 2004, 10:01 AM
|
Advanced Wizard ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 489 Member No.: 297 Joined: 6-October 02 ![]() |
You should be able to do this using stunnel. Set up stunnel to listen to (for example) port 1995 and have it forward all trafic from that port via a secure connection to port 995 on the POP3 machine you want to contact.
Now your settings for xmail should look like this: "@home.bogus.com" "dlibenzi" "localhost:1995" "dlibenzi" "XYZ..." Have a look at the stunnel website to see how to set up stunnel. I use an older versin of stunnel on Win32, so I'm not sure if I'll be able to help you with that. |
RaveRod |
Posted: Jan 18 2004, 03:02 PM
|
Newbie ![]() Group: Members Posts: 8 Member No.: 888 Joined: 15-January 04 ![]() |
Thanks for that bim. I'll look into it right away. I'll let you know how it went.
I'm really glad I found something because I really don't want to change from XMail. I love it's easy of use (for me at least) and maximum control. |
hschneider |
Posted: Jan 19 2004, 08:22 PM
|
||||||||||||
![]() No - I'm not an answering script ... ![]() Group: Admin Posts: 6631 Member No.: 195 Joined: 19-June 02 ![]() |
Secure POP3 does not need stunnel on client side. You only have to deal with stunnel when you want to setup POP/SSL on your server. The problem here is using an already existing tunnel which needs authenticaton. As I discovered so far, this will fail because XMail does NOT support SSL authentication via POP3 (BTW: most common mailservers like sendmail or qmail do NOT support this - so don't worry ...). But: you can plug in this functionality by using fetchmail: If you are on a Windows platform ... - Get the the latest cygwin package from http://cygwin.com - Check fetchmail in your setup dialog. - After installation: Make sure to set your system's search path to cygwin's bin folder On Linux.. - Install fetchmail with your package manager After installation: - Create a file named .fetchmailrc in a folder of your choice (e.g. in your MailRoot). Assume the following scenario: - Your popserver is ssl.pop.kundenserver.de, - your mailboxname is user1 and - your password is pass1. - XMail accepts mails at 127.0.0.1 (= localhost). - Mail headers should be rewritten to your local domain which is named intra.net Then the content of your .fetchmailrc is
- Create a script, which calls fetchmail with the following content:
- Put this script on your system's scheduler. Prepare XMail ... - Add this to your aliasdomain.tab:
- Add this to your smtprelay.tab:
What does it do? - Fetchmail authenticates on the remote system's port 995 through a SSL tunnel. - It collects all mails from the POP account, - replaces the domain part with the localhost and - redirects them to XMail's SMTP port 25 (on localhost in our example) - XMail receives them as usual, - checks if 'localhost' is an alias in aliasdomain.tab, - replaces the alias with the original name (here intra.net) and - sorts them into its local mailboxes. Fetchmail supports a wide range of protocols, with or without SSL encryption. So it is very easy to connect various other external POP or IMAP servers to your XMail machine:
Take care: When testing, keep in mind that fetchmail deletes all mails from your POP account after retrieval. If they are redirected e.g. to a non existing smtphost, they will disappear forever. So testing with a dummy account first is recommended. If you cannot run a dummy account, add the following line to your .fetchmailrc before the fetchall command, while testing:
This will keep the messages in your POP box. More about fetchmail: http://www.catb.org/~esr/fetchmail/ http://www.catb.org/~esr/fetchmail/fetchmail-man.html http://www.catb.org/~esr/fetchmail/fetchmail-FAQ.html -------------------- Bye,
Harald -- Download XMail Queue Manager 1.46 NOW: XMail Server Tools -- Cross platform remote queue management! -- Message analyzing on the fly! -- Builtin diagnostics knowledge base! -- Manages multiple mail queues! Sponsored by CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg |
||||||||||||
RaveRod |
Posted: Jan 19 2004, 11:42 PM
|
Newbie ![]() Group: Members Posts: 8 Member No.: 888 Joined: 15-January 04 ![]() |
Hmm... thanks a lot hschneider. The stunnel option didn't work for me (XMail seemed to want to stay connected to stunnel).
I'll try fetchmail and see what turns up. |
hschneider |
Posted: Jan 20 2004, 06:55 AM
|
![]() No - I'm not an answering script ... ![]() Group: Admin Posts: 6631 Member No.: 195 Joined: 19-June 02 ![]() |
This will work 100%. Just let me know, if you got stuck somewhere. I have put some minor tweaks in the article above, but it also works with the original recipe.
-------------------- Bye,
Harald -- Download XMail Queue Manager 1.46 NOW: XMail Server Tools -- Cross platform remote queue management! -- Message analyzing on the fly! -- Builtin diagnostics knowledge base! -- Manages multiple mail queues! Sponsored by CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg |