简体   繁体   中英

mail server OVH configuration

I'm trying to setup a mail server for the first time. I do think everything is fine on my server side. However it seems that my ovh configuration is a bit more painful.

Here is my docker-compose.yaml (for those who know docker-mailserver image)

version: "2.2"
services:
  mail:
    image: tvial/docker-mailserver:latest
    hostname: mail
    domainname: bnbkeeper.thibautduchene.fr
    container_name: mail
    ports:
      - "25:25"
      - "143:143"
      - "587:587"
      - "993:993"
    volumes:
      - maildata:/var/mail
      - mailstate:/var/mail-state
      - ./config/:/tmp/docker-mailserver/
    environment:
      - ENABLE_SPAMASSASSIN=1
      - ENABLE_CLAMAV=1
      - ENABLE_FAIL2BAN=1
      - ENABLE_POSTGREY=1
      - ONE_DIR=1
      - DMS_DEBUG=0
    cap_add:
      - NET_ADMIN
      - SYS_PTRACE

volumes:
  maildata:
    driver: local
  mailstate:
    driver: local

I do end up with this in my logs

mail.bnbkeeper.thibautduchene.fr is up and running

I also configured a user and dkim keys.

here is my config so far in ovh and I cant send emails.

在此处输入图片说明

I have these kinds of logs when trying to send an email from nodemailer

postfix/qmgr[955]: 6551946BAF: from=<amavis@mail.thibautduchene.fr>, size=762, nrcpt=1 (queue active)
Nov  2 04:53:36 mail postfix/smtp[31638]: connect to mail.thibautduchene.fr[213.186.33.20]:25: Connection timed out
Nov  2 04:53:36 mail postfix/smtp[31638]: 6551946BAF: to=<amavis@mail.thibautduchene.fr>, orig_to=<amavis>, relay=none, delay=113725, delays=113695/0.03/30/0, dsn=4.4.1, status=deferred (connect to mail.thibautduchene.fr[213.186.33.20]:25: Connection timed out)

that is why I think my ovh configuration default to the mail server on thibautduchene.fr. And I would like to use bnbkeeper.thibautduchene.fr which is another mail server. How should I do that? thanks

SMTP Server shall be reachable via standard ports:

TLS:587
SSL:465
No Encryption: 2525
IMAP (Receiving): 25

You can setup absolutely free email server via AWS free tier, just make sure you choose clean IP. You can try to instal mailinabox free and open source software, on fresh Ubuntu 14.44 version. Or any other open source mail server would work just fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM