hosting emails at home
Stephan H
herker at gmail.com
Mon Dec 11 01:10:02 EET 2017
Originally I was on a business connection, so no port blocking. I moved to
a residential connection at home and they blocked port 25. So I enabled
my VPS in the cloud to relay my mail to the imap server in my home. It's a
very simple setup. I only allow a couple IPs to relay anything through (
my home IP and other VPS's). Any other connection must be delivering to my
IP or it's rejected. Then In the transport maps tell it to utilize a non
standard port
domain.com relay:[home.domain.com:28]
On the home server's postfix I just define the relay host which also uses a
non standard port
relayhost: [vps1.domain.com:26]
At this point you just have to setup your postfix/dovecot config how you
want. I'm using postfixadmin and both postfix and dovecot use mysql to
determine domains, users, and passwords.
On Sun, Dec 10, 2017 at 2:27 PM, Fabian A. Santiago <
fsantiago at garbage-juice.com> wrote:
> On December 10, 2017 5:25:46 PM EST, Stephan H <herker at gmail.com> wrote:
> >Which part? Hosting the email server at home or the relay in the
> >cloud?
> >
> >On Dec 10, 2017 14:53, "Fabian A. Santiago"
> ><fsantiago at garbage-juice.com>
> >wrote:
> >
> >> On December 10, 2017 3:39:05 PM EST, Stephan H <herker at gmail.com>
> >wrote:
> >> >I have dovecot postfix setup on my home server as well. I use a
> >> >virtual
> >> >server in the cloud as my mx record and mail relay and have my home
> >> >record
> >> >on dynamic dns. It's really effective.
> >> >
> >> >On Dec 10, 2017 2:37 PM, "Fabian A. Santiago"
> >> ><fsantiago at garbage-juice.com>
> >> >wrote:
> >> >
> >> >> On December 10, 2017 2:49:35 PM EST, "André Rodier"
> ><andre at rodier.me>
> >> >> wrote:
> >> >> >Hello Mike,
> >> >> >
> >> >> >Yes, I am using a static IP address, but in theory, you could use
> >a
> >> >> >dynamic one.
> >> >> >
> >> >> >Nothing technically would prevent email exchanges between two
> >boxes,
> >> >as
> >> >> >long as the SPF records are up to date and the DKIM is properly
> >> >setup.
> >> >> >
> >> >> >Unfortunately, some ISPs are simply blacklisting full range of
> >> >private
> >> >> >IP addresses just because they are not officials / commercials.
> >> >> >
> >> >> >Kind regards,
> >> >> >André
> >> >> >
> >> >> >On 10/12/17 19:24, Mike wrote:
> >> >> >>
> >> >> >> Nice.
> >> >> >>
> >> >> >> Are you using a static IP in this setup?
> >> >> >>
> >> >> >> It doesn't seem like it, but wanted to be sure.
> >> >> >>
> >> >> >> Mike.
> >> >> >>
> >> >> >> Quoting André Rodier <andre at rodier.me>:
> >> >> >>
> >> >> >>> Hello everyone,
> >> >> >>>
> >> >> >>> I have been using Postfix and Dovecot for my personal emails
> >for
> >> >> >years.
> >> >> >>> After being tired of reinstalling my personal mail server many
> >> >> >times, I
> >> >> >>> am currently writing some Ansible scripts to do it
> >automatically.
> >> >> >>>
> >> >> >>> I obviously checked the other projects, and did not found
> >> >anything
> >> >> >close
> >> >> >>> to what I am looking for, so I am implementing it now.
> >> >> >>>
> >> >> >>> The final goal is to have a box that once online, would setup
> >> >> >itself, by
> >> >> >>> creating the certificates, the DKIM keys and update the
> >> >appropriate
> >> >> >DNS
> >> >> >>> records.
> >> >> >>>
> >> >> >>> This is so far what I have achieved:
> >> >> >>> - Automatic generation of certificates using LetsEncrypt
> >> >> >>> - Automatic update of the domain entries: imap, smtp, webmail,
> >> >etc.
> >> >> >>> - Automatic generation of a DKIM keys
> >> >> >>> - Automatic update of specific records (MX, SPF, DKIM, etc.)
> >> >> >>> - LDAP server for user accounts, with or without system login.
> >> >> >>> - Installation of Postfix, Dovecot and Roundcube
> >> >> >>>
> >> >> >>> Sending DKIM signed emails is working, and the IMAP server is
> >> >> >configured
> >> >> >>> as well, although basic.
> >> >> >>>
> >> >> >>> The postfix and dovecot configuration are not yet entirely
> >> >finished.
> >> >> >I
> >> >> >>> am planing to add an anti spam system, and sieve, amongst
> >other
> >> >> >things.
> >> >> >>>
> >> >> >>> Although in development during my spare time, the system is
> >> >normally
> >> >> >>> robust and you should be able to run it multiple times without
> >> >> >errors.
> >> >> >>>
> >> >> >>> If anyone is interested to use it, to have a look, or to take
> >> >part,
> >> >> >it
> >> >> >>> is here: https://github.com/progmaticltd/homebox
> >> >> >>>
> >> >> >>> Kind regards,
> >> >> >>> André Rodier.
> >> >> >>
> >> >> >>
> >> >>
> >> >> Non static ip'd mail servers are also blocked because they're
> >> >typically
> >> >> spammers.
> >> >> --
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Fabian S.
> >> >>
> >> >> OpenPGP: 3C3FA072ACCB7AC5DB0F723455502B0EEB9070FC
> >> >>
> >>
> >> Stephan h, may I ask why you do that? Just out of curiosity.
> >> --
> >>
> >> Thanks,
> >>
> >> Fabian S.
> >>
> >> OpenPGP: 3C3FA072ACCB7AC5DB0F723455502B0EEB9070FC
> >>
>
> Both; the whole setup.
> --
>
> Thanks,
>
> Fabian S.
>
> OpenPGP: 3C3FA072ACCB7AC5DB0F723455502B0EEB9070FC
>
More information about the dovecot
mailing list