I’ve set up two LAMP Droplets with sendmail. One server is sending to the same domain that’s pointing to itself with no problem, however the other one will not send to the same domain as itself.
It’s giving an error of:
050 503-All RCPT commands were rejected with this error:
050 503-unknown user
I’ve set both droplets up in accordance to this guide using the droplet’s respective domains.
Is there something I’ve missed or is there an alternative?
mod edit: fixed the link
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!
I made this changes… But… not working for emails(same domains - another domains works)… Using external mx.
Hi!
It looks like Steve had the same issue, and so he included a solution under ATTENTION! READ THIS…. I’ll copy them here:
Edit /etc/mail/sendmail.mc and add the following lines at the end:
define(`MAIL_HUB', `domain.com.')dnl
define(`LOCAL_RELAY', `domain.com.')dnl
Make sure you including the trailing dot!
Run sendmailconfig so that the changes take effect, and restart sendmail just to be 100% sure:
sudo sendmailconfig
sudo service sendmail restart
Once you’ve done that, try sending an email to the same domain and you should see sendmail connecting to your domain’s incoming mailserver(s) in the log file.
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.