I configured Exim4 to receive fake emails in wildcard domains (eg: @subdomain.mydomain.com) and run a command. But every time I send an email to the domain an error is returned.
2017-04-08 19:45:59 H=mail-qk1-fl21.google.com IP] F=sender_example@example.com rejected RCPT fakemail@fake-sub-domain.mydomain.com: relay not permitted
This is my Exim4 config:
Routes
begin routers
catchall_mail:
driver = accept
domains = %
transport = send_to_site
Transports
begin transports
send_to_site:
driver = pipe
command = /usr/bin/curl https://www.example.com/mail.php --data-urlencode "mail@-"
user = nobody
group = nogroup
return_path_add
delivery_date_add
envelope_to_add
Config
dc_eximconfig_configtype='internet'
dc_other_hostnames='mailer.dominio.com;dominio.com'
dc_local_interfaces=''
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
What can I be doing wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.