Re: [Linux-users] email server; of sorts
On Fri, 2015-08-14 at 15:27 +1200, Jim Cheetham wrote: On Fri, Aug 14, 2015 at 3:26 PM, Adrian Mageanu adrian.mage...@totalimex.com wrote: Errr, scratch that, I found they invented google. Sure, but if you don't know the right words to use to describe your problem, you won't be able to find the best technical detail :-) -jim So true, I spent a silly amount of time looking for something like kerio in the FOSS world - that server does all I want and some, but it's not FOSS and the price is prohibitive for personal use. At some stage I started playing with Zimbra, but there I had the same problem I'm trying to avoid with this setup, meaning that for an IMAP account I couldn't find a way to keep a local copy of a message after it was deleted from the server. Glad you ignored this message. I started working on this, I'll post the configuration when I finish. Or ask for some more directions if I get stuck. Adrian ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On Mon 17 Aug 2015 09:30:10 NZST +1200, Adrian Mageanu wrote: If I use my domain(s) or any other domain to forge the From field to appear as if I'm sending from one of those email addresses, it will cause problems. True, e.g. SPF, although that can be mitigated a bit it's a hassle. Plus the headers will show where it really came from so you don't have complete separation, which may matter depending on the reason you're needing to send through those given SMTP servers. Volker -- Volker Kuhlmann http://volker.top.geek.nz/ Please do not CC list postings to me. ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On 14/08/15 15:28, linux-users-requ...@lists.canterbury.ac.nz wrote: Indeed none of the email servers I have accounts on are under my control. All you said is do-able (including the TLS) until the sending part. Yes, I wasn't too clear on the sending part. This server software or setup I'm looking for, when replying to a message it should use the original email account on the original server where the original message was collected from to send the reply. Also when sending a new email I should be able to chose from the email client an identity that this server/setup will translate in a combination of server/account to send the emails as, and this server/setup should use that account on that server to send the message using the appropriate credentials, and keep a copy of the sent message locally. Can you do that with postfix? I mean using multiple relay servers? If yes, can you give me any pointers please where to start reading? I'm in agreement with pretty much everything already said. Fetchmail, an MTA, something to sort like procmail or sieve, an imap server, and a web frontend that talks to imap are all parts of your solution. rsync is probably not a component in this solution - getting email to multiple devices will be handled by imap. Your main problem will be sending from those other accounts. Does anyone need that expanded? It may be possible for some accounts, but probably not all. The answer is to make use of the domain you already own, and send all outbound email from there. Since you own it, you'll never be beholden to an ISP or a company ever again. If that domain name is a work one, I suggest you buy a second domain name for personal usage. -- Criggie http://criggie.org.nz/ ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On Fri, Aug 14, 2015 at 9:25 AM, Adrian Mageanu adrian.mage...@totalimex.com wrote: I'm looking for a server software, but not even sure how to call it - Not a single piece of software, but a group of multiple other components to do the mail collection. I'll assume that your current email accounts are all on servers that you don't control; in which case you will need to use something like fetchmail to use your credentials to go and fetch them. Next you want somewhere to put them; I use maildrop as an MDA (mail delivery agent) to write these fetched messages directly into a Maildir (local filesystem mail storage). Other tools like procmail and friends can do that too. Next, you can use Dovecot to run an IMAP service (over TLS please) to allow your multiple clients to access the messages; or run local software that reads Maildirs directly if you prefer (mutt, for example) Finally, you want to be able to send email. That isn't so stratghtforward, because you'll have delivery problems if you want to try to send as each of those original incoming email addresses from a single source, unless you can also send via their original SMTP services. Also, you have to provide a single service (probably SMTP) that will be available to all of your clients at the same time; which is where you might choose Postfix (over TLS again, authenticated) to provide that. Postfix will probably be able to route the outbound email via the various different services for you, it'll be an unusually complex setup but it'll be do-able. Just don't bother trying to send email directly to the Internet yourself at this stage. So what I think I need is a server software that: - is able to connect to all email accounts - retrieve email messages Fetchmail - keep a copy of the message locally - regardless of whether was deleted on the original server or not - with means of identifying the email account it was collected from Maildrop (from the Courier MTA tools, packed separately for Debian) - accept connections from other email clients in a form that will allow a copy of the messages to be preserved on it (IMAP comes to mind) You already like Dovecot :-) - when replying to a message from an email client connected to it, the server will know to use the email account on the server the message originally came from Postfix should be able to route outbound email to different authenticating SMTP servers based on the From: address. - have a web interface (nice to have, not mandatory) Roundcube is a decent web front-end that talks happily to Dovecot - be open source and run on linux Sure; you did say email after all :-) -jim ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On Fri 14 Aug 2015 09:25:13 NZST +1200, Adrian Mageanu wrote: [...] If this can be achieved with postfix/dovecot No way, but thay can be part of the solution. You are asking about incoming emails on different servers, and outgoing emails via different servers. It seems pretty obvious that you'd have to direct a copy of each incoming email from each server to a single server, on which you run an SMTP receiver (there are other ways to copy the emails) and an IMAP server. To this you connect with your clients. Sending emails via different accounts is generally an MUA issue, of course it is annoying to have to configure each of them. If your MUA connects to a single MTA then it might be possible to configure that MTA to route according to your mailboxes in use, but I tried a few weeks ago to knock something trivial of that into postfix and didn't get it to do it as needed, so will stay with sendmail. You might find it easier to move all your mailboxes to a single server. Easier organisation, single point of failure. You might find procmail and rsync very useful too. I'd be very keen to hear of other solutions too. HTH, Volker -- Volker Kuhlmann http://volker.top.geek.nz/ Please do not CC list postings to me. ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
[Linux-users] email server; of sorts
Hi, I'm looking for a server software, but not even sure how to call it - I'm tempted to say email proxy, but that's something else - so here is what I need/want. The scenario is that I have multiple personal email accounts on multiple servers, on some servers more than one email account per server. The servers are of types POP, IMAP and Exchange. On some servers I have space restrictions, so periodically I have to delete messages or an automated process will it on the accounts on those servers. What I'd like to do is to preserve an indefinite history of messages locally on a server and be able to access that history from email clients on multiple devices like phones, laptops, other PCs, etc. So what I think I need is a server software that: - is able to connect to all email accounts - retrieve email messages - keep a copy of the message locally - regardless of whether was deleted on the original server or not - with means of identifying the email account it was collected from - accept connections from other email clients in a form that will allow a copy of the messages to be preserved on it (IMAP comes to mind) - when replying to a message from an email client connected to it, the server will know to use the email account on the server the message originally came from - have a web interface (nice to have, not mandatory) - be open source and run on linux Does such a software exist in the FOSS world? If this can be achieved with postfix/dovecot, I'd appreciate a link to a how-to guide. TIA ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On Fri, Aug 14, 2015 at 3:26 PM, Adrian Mageanu adrian.mage...@totalimex.com wrote: Errr, scratch that, I found they invented google. Sure, but if you don't know the right words to use to describe your problem, you won't be able to find the best technical detail :-) -jim ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On Fri, Aug 14, 2015 at 3:13 PM, Adrian Mageanu adrian.mage...@totalimex.com wrote: Yes, I wasn't too clear on the sending part. This server software or setup I'm looking for, when replying to a message it should use the original email account on the original server where the original message was collected from to send the reply. A bunch of separate problems here: * how your mail client sets the correct From address, which will be down to the client itself. It may be difficult in simple clients (i.e. ones on smartphones) but is well within the normal range of something like Thunderbird. * how your clients send email to your server (I'll assume that you want all your outbound email to go through your own server first, although ultimately they'll go via the correct outbound service ...); this is normal configuration. Make sure you encrypt authenticate! * How your mail server will differentiate messages from separate From addresses; this isn't currently in my head. However http://serverfault.com/questions/146559/postfix-configuration-different-outgoing-hosts-based-on-sender looks like the right thing, pointing towards sender_dependent_relayhost_maps as the setting to use to get started ... This mapping will replicate the knowledge that was in your fetchmail - i.e. which email address is associated with which real server. * How your mailserver will *authenticate* using different credentials to the different relay hosts http://serverfault.com/questions/277651/how-can-i-get-postfix-to-send-mail-to-different-relay-hosts might provide the answer, but in their case they're only choosing differenr username:passwords, and sending them all to the same host. -jim ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On Fri, 2015-08-14 at 09:43 +1200, Volker Kuhlmann wrote: You might find it easier to move all your mailboxes to a single server. Easier organisation, single point of failure. You might find procmail and rsync very useful too. I thought of that, even considered rsync-ing periodically the a clients' Maildir repository to all devices, but it's hard for phones and tablets. ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
Re: [Linux-users] email server; of sorts
On Fri, 2015-08-14 at 15:13 +1200, Adrian Mageanu wrote: On Fri, 2015-08-14 at 11:49 +1200, Jim Cheetham wrote: On Fri, Aug 14, 2015 at 9:25 AM, Adrian Mageanu adrian.mage...@totalimex.com wrote: Can you do that with postfix? I mean using multiple relay servers? If yes, can you give me any pointers please where to start reading? Errr, scratch that, I found they invented google. If all works, I'll let you know. Thanks again, Adrian ___ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users