[BUGS] Sendmail as forwarder

Jerahmy Pocott quakenet1 at optusnet.com.au
Wed Jan 2 17:01:40 EST 2008


On 02/01/2008, at 2:48 PM, John Marshall wrote:

> I'm missing something here:
>
> - You say that local mail is working fine and yet mail to a local
> addressee is sitting in the queue "Deferred".
> - You say that mail sent to an external domain is sitting in the queue
> but mailq only shows an entry for mail to a local addressee?

Yes, sorry I should be more clear, I only pasted the Deferred line, it  
actually looks something like:

m9932kjas8392   5   1929378+ Jan 2 11:53 <user at external.domain>
(Deferred: 450 4.1.8 <user at host.local.domain>: Sender address  
rejected: Domain not found)

I went and connected to the smtp server with netcat to see what it was  
doing and as you can see the upstream relay is rejecting the sender  
address, which is what the virtualusertable stuff below was supposed  
to be fixing:

>> @localmachine.local.domain	%1 at external.domain
>>

It's not back-to-front, I'm trying to make it change the sender  
address from localmachine.local.domain to external.domain so that the  
relay will accept it. Externally sent mail cannot be replied to the  
local domain any way, I would probably want to map all external going  
mail to a single user at external.domain, but for now I was just letting  
it send as the user.

Can I not do this with virtual user table? From what I read it should  
work.. But the sender address is staying as the local domain and  
getting rejected over and over..

Perhaps I'm a little confused >.<
J.


More information about the BUGS mailing list