Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .