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

Connect to mailhog container #2

Open
yoyos opened this issue Jan 2, 2017 · 1 comment
Open

Connect to mailhog container #2

yoyos opened this issue Jan 2, 2017 · 1 comment

Comments

@yoyos
Copy link

yoyos commented Jan 2, 2017

I would like to send my emails from a web container to the mailhog container trough exim4

I changed the config like that

dc_eximconfig_configtype='smarthost'
dc_other_hostnames='27bea122bcdb'
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='localhost:1025'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

But I have this error when I'm trying to send a mail in my web container.

2017-01-02 15:45:18 1cO4nW-0000WM-Th <= root@27bea122bcdb U=root P=local S=355
2017-01-02 15:45:18 1cO4nW-0000WM-Th remote host address is the local host: somedomain.tld
2017-01-02 15:45:18 1cO4nW-0000WM-Th == someone@somedomain.tld R=smarthost defer (-1): remote host address is the local host
2017-01-02 15:45:19 1cO4nW-0000WQ-WC <= <> R=1cO4nW-0000WM-Th U=Debian-exim P=local S=566
2017-01-02 15:45:19 1cO4nW-0000WM-Th Frozen
2017-01-02 15:45:19 1cO4nW-0000WQ-WC => /var/mail/mail (root@27bea122bcdb) postmaster@27bea122bcdb R=mail4root T=address_file
2017-01-02 15:45:19 1cO4nW-0000WQ-WC Completed

Do you know what's happening here or how I could fix it ? :)

Thank you !

@Onita77
Copy link

Onita77 commented Oct 21, 2021

I add "::" instead of ":" next to the port and it works

dc_eximconfig_configtype='smarthost'
dc_other_hostnames='27bea122bcdb'
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='localhost::1025'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

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

No branches or pull requests

2 participants