Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a domain shrimp.foo already setup at the MX to route all incoming mail addresses (*@shrimp.foo) to one particular mailbox the ISP provides for IMAP, POP, webmail, etc.: bubba@shrimp.foo

Tested sending TO random-address@shrimp.foo works.

Back on my Linux Ubuntu box, using the SMTP credentials, I can already send out mail as bubba@shrimp.foo, no problem.

Problem is, how do I send FROM an arbitrarily different address other than bubba@, but still the same domain somethingelse*@shrimp.foo*? My attempts using the mail command error:

Sender address rejected: not owned by user

In my /etc/exim4/passwd.client

# https://poczta.nazwa.pl/
shrimp.foo:bubba@shrimp.foo:password
*.shrimp.foo:bubba@shrimp.foo:password
share|improve this question

1 Answer 1

up vote 0 down vote accepted

Eventually I figured it out. Not sure which change mattered most for this but:

in /etc/exim4/update-exim4.conf.conf

dc_eximconfig_configtype='smarthost'
dc_smarthost='smtp.englishetc.pl::587' 

The ::587 wasn't obvious to me.

in /etc/exim4/passwd.client

# https://poczta.nazwa.pl/
englishetc.pl:bubba@englishetc.pl:passwd
smtp.englishetc.pl:bubba@englishetc.pl:passwd
^smtp[0-9]*.englishetc.pl:bubba@englishetc.pl:passwd
*.englishetc.pl:bubba@englishetc.pl:passwd
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.