mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.99k stars 1.44k forks source link

Few problems with ufw, DKIM... #59

Closed nephthys closed 10 years ago

nephthys commented 10 years ago

Hello,

Since few days, I have recurring problems with this script during installation on OpenVZ. In fact, I must comment ufw part of the code because otherwise I "lose" the SSH access on my virtual server.

Also my outgoing mails are not signed by DKIM after the installation (via smtp, port 587). I have to regenerate a key for my domain with opendkim-genkey to make it work. I had this error at installation:

Restarting OpenDKIM: opendkim: / etc / opendkim.conf: refile :/ etc / opendkim / SigningTable: dkimf_db_open (): No such file or directory 
opendkim. 
  * Stopping Postfix Mail Transport Agent postfix [OK] 
  * Starting Postfix Mail Transport Agent postfix [OK] 
Installing spampd razor pyzor dovecot-sieve dovecot-antispam ... 

But this script is almost perfect!

Thanks.

JoshData commented 10 years ago

Hi,

You can disable ufw by setting an environment variable

https://github.com/JoshData/mailinabox/blob/master/scripts/system.sh#L37

since it seems like ufw never works right in virtualized environments.

It's possible the DKIM message is normal --- I think that is the same as #48. If it's not the same as #48, feel free to reopen the issue.