LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2014, 04:08 PM   #1
Alan_UK
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
Routing emails from Wine app via Postfix - will this idea work


Background:

Hi, desperately trying to move off XP. Have set up a Linux Lite system including Wine as need to run a couple of XP apps with significant historic data. One is The Bat!, my plain text, multiple account email software. It's running OK. As I'm running Windows under Wine and Virtual Box and also most (all?) of my email is with Windows users and lots of attachments, I feel I need to take precautions.

Comodo has been selected for active malware protection. It can scans emails via Postfix and a few other MTAs. However, The Bat! under Wine is talking direct to my ISP over TCP/IP.

Solution?: Install Postfix and Dovecot and configure The Bat! to use Postfix +Dovecot as follows:

The Bat! email software under Wine - defined for each of my email addresses:
User: me
SMTP server: smtp.mymailserver.mypc:25 - no SSL
Pop3 server: pop.mymailserver.mypc:110 - no SSL
From address: me@mydomain.co.uk
Repyto address: me@mydomain.co.uk

Dovecot - defined for each of my email addressess:
User me
User ID: me@mydomain.co.uk
SMTP server: auth.smtp.myISP.co.uk:25 - SSL / STARTTLS with password
Pop3 server: pop.myISP.co.uk:995 - SSL / TLS with password

Postfix
Outgoing using Smarthost to myISP
relayhost: auth.smtp.myISP.co.uk - seems to duplicate above
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smarthost_passwd
smtp_sasl_security_options = noanonymous
myhostname: mymailserver.mypc - will not be handling emails from the net
mydestinations: mymailserver.mypc localhost
mynetworks: 192.168.1.0/16 127.0.0.0

Note: I have a router with firewall and all PCs, NAS etc have fixed IP nos.

So, will this work? Have I missed anything? Am I right that my router does not need any changes? Presumably Postfix is hosting DNS for mymailserver.mypc or should I/can I configure the router?

PS As I'm using mostly POP3 then if I'm out of the house then I don't want Postfix/Dovecot to be downloading my emails and staging them in case I want to view them via webmail. Will it work this way, i.e. only get the emails from my isp when I request them?

Many thanks

Alan

Last edited by Alan_UK; 04-18-2014 at 05:15 AM. Reason: added PS; changed to mymailserver.mypc; added relayhost etc
 
Old 05-01-2014, 07:04 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 656

Rep: Reputation: 121Reputation: 121
Well if your service is smtp compatible, and you used that, why do you worry? If you used pop3, you would have issues.

Smtp will synchronize the mailbox over all devices.

You don't need postfix and dovecote for accessing an isp mail account. Those are used if you want to run your own email server. That is good if you want to learn or have specific requirements, but over the top for just personal email.

You should be able to switch the bat thingy with mutt. Doing so vwill allow you to get rid vof the wine part of things.

Last edited by ericson007; 05-01-2014 at 07:05 AM.
 
Old 05-01-2014, 07:20 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,380

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Yes it will work, but I think you are making life difficult for yourself clinging to win apps.

Setup postfix/dovecot and move all your mail into dovecot with IMAP accounts.
Then you can use whatever client you want and backup everything in a portable format (plain text).

Fetchmail (or getmail) to pull messages from your ISP boxes can be turned on/off as required, but once you get going I think you'll find it easier to have your server as THE mailstore, and set up your own webmail for remote access (it's pretty easy with Roundcube or squirrelmail or such).

Postfix has nothing to do with DNS, that is a separate process.
You can simply use IP addresses, or have name resolution by host files or in your router or run a DNS server (dnsmasq is easy and excellent for what you want).
 
Old 05-01-2014, 07:10 PM   #4
Alan_UK
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks guys I've spent many, many hours experimenting. I thought stage 1 would be to get things working under Linux before trying to integrate Wine.

Installed ClamAV, ClamTK, Postfix, Dovecot, Sylpheed-Claws and clamAVsmtp. All the email stuff is working both to my ISP (smtp/pop3) and locally using IP address: user@[192.168.1.15] - my router assigns fixed IP addresses based on MAC IDs.

What is not fully working is email virus scanning.

Using Claws if I send a test zipped eicar virus using the local PC account it is picked up and shows on the ClamAV log. But sending to my ISP account it is the ISP that is rejecting the email (even though I'm not paying for virus scanning as it's very expensive) as the Claws log shows handshakes to them and then the reject message. There is nothing on the ClamAV log.

But receiving the zipped eicar in Claws is not picked up for my ISP account and the ClamAV log is clean.


I tried configuring Clamsmtp with sudo dpkg-reconfigure clamav-base using by UNIX and TCP options but the results were the same. I then initiated ON ACCESS scanning but opening the received zipped eicar virus does nothing and gives no error messages but I later found error messages that OnAccess was not activated.

I have found the configuration of Postfix and Clamsmtp very difficult. Lots on the internet but very technical and often contradictory particularly re Master.cf and
127.0.0.1:10026 inet n - n - 16 smtpd
with some articles swapping the OutAddress and Listen values.


As an alternative I tried to get OnAccess scanning working but lots of error messages in ClamAV log. Not so simple it seems. Google just brings up old threads that talk about changing the kernel and recompiling.

re the suggestions - I'll look again at those tomorrow but it's a challenge moving with a legacy of 12,000 emails.

Cheers,
Alan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: The easiest way to turn your app idea into an appliance LXer Syndicated Linux News 0 03-18-2014 12:50 PM
Postfix can not receive emails katja1111 Linux - Server 6 08-03-2010 06:07 PM
Windows app's that don't work under Wine PClOStinspace Linux - Software 1 08-09-2008 02:57 PM
Windows integration app idea sneeze Programming 1 02-10-2004 04:54 PM
Multi-Service Machine Including Routing a Good Idea?? Breezwell Linux - Networking 2 11-10-2001 11:26 PM


All times are GMT -5. The time now is 05:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration