Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailsystem - configuration #14

Open
fguy-skilld opened this issue Nov 8, 2016 · 3 comments
Open

Mailsystem - configuration #14

fguy-skilld opened this issue Nov 8, 2016 · 3 comments
Labels

Comments

@fguy-skilld
Copy link

Right now all emails are caught in mailhog

This doesn't permit to PM / QA to test these emails (back & especially front)

The goal is to create an option which permits to :

  • Send all emails without any catch (when site goes live with our docker system all emails must be sent)
  • Catch all emails with a specific rule :
    ** Create a whitelist which allow emails to be send to these email adresses
    ** Catch all others emails and send them to mailhog
@andypost
Copy link
Contributor

andypost commented Nov 8, 2016

Mailhog allows only

docker run --rm -it skilldlabs/mailhog --help
Usage of MailHog:
  -api-bind-addr string
        HTTP bind interface and port for API, e.g. 0.0.0.0:8025 or just :8025 (default "0.0.0.0:8025")
  -api-host string
        API URL for MailHog UI to connect to, e.g. http://some.host:1234
  -auth-file string
        A username:bcryptpw mapping file
  -cors-origin string
        CORS Access-Control-Allow-Origin header for API endpoints
  -hostname string
        Hostname for EHLO/HELO response, e.g. mailhog.example (default "mailhog.example")
  -invite-jim
        Decide whether to invite Jim (beware, he causes trouble)
  -jim-accept float
        Chance of accept (default 0.99)
  -jim-disconnect float
        Chance of disconnect (default 0.005)
  -jim-linkspeed-affect float
        Chance of affecting link speed (default 0.1)
  -jim-linkspeed-max float
        Maximum link speed (in bytes per second) (default 10240)
  -jim-linkspeed-min float
        Minimum link speed (in bytes per second) (default 1024)
  -jim-reject-auth float
        Chance of rejecting authentication (AUTH) (default 0.05)
  -jim-reject-recipient float
        Chance of rejecting a recipient (RCPT TO) (default 0.05)
  -jim-reject-sender float
        Chance of rejecting a sender (MAIL FROM) (default 0.05)
  -maildir-path string
        Maildir path (if storage type is 'maildir')
  -mongo-coll string
        MongoDB collection, e.g. messages (default "messages")
  -mongo-db string
        MongoDB database, e.g. mailhog (default "mailhog")
  -mongo-uri string
        MongoDB URI, e.g. 127.0.0.1:27017 (default "127.0.0.1:27017")
  -outgoing-smtp string
        JSON file containing outgoing SMTP servers
  -smtp-bind-addr string
        SMTP bind interface and port, e.g. 0.0.0.0:1025 or just :1025 (default "0.0.0.0:1025")
  -storage string
        Message storage: 'memory' (default), 'mongodb' or 'maildir' (default "memory")
  -ui-bind-addr string
        HTTP bind interface and port for UI, e.g. 0.0.0.0:8025 or just :8025 (default "0.0.0.0:8025")
  -ui-web-path string
        WebPath under which the UI is served (without leading or trailing slashes), e.g. 'mailhog'. Value defaults to ''

@andypost
Copy link
Contributor

andypost commented Nov 8, 2016

@andypost
Copy link
Contributor

andypost commented Nov 9, 2016

I got successful delivery with gmail account with "Release" button

mail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants