On Fri, 6 Apr 2001, Charles Cazabon wrote:

> Antje Koschel <[EMAIL PROTECTED]> wrote:
> >
> > Except that some programs here are written in a way that they connect direct
> > to the port 25 of the qmail server and and feed the mail via the smtp
> > commands.  Unfortunatly they only use "username" as sender and not
> > "username@mydomain" .  And they might be rejected by another because they
> > don't have a valid domain name.
>
> Doesn't qmail append envnoathost in this circumstance?

envnoathost was set (it should default to me anyway) but it sets the
recipients domain if it is missing not the senders (return address).

>
> > Is there a possibility to append the domain to addresses missing the
> > domain in any mail sent from local machines (as recognized with the tcprules)?
>
> You could use the fixup/@fixme trick to run the messages through qmail-inject
> or new-inject, which will fix up headers, etc.  See Dan's documentation and
> FAQ for details.
>
> Charles
>

I checked out the fixup/@fixme trick but now mails seems to be sent from
alias@domain.

I put:

virtualdomains
fixme:fixup

tcp.smtp
192.54.41.49:allow,RELAYCLIENT="@fixme"

more ~alias/.qmail-fixup-default
| bouncesaying 'Permission denied ' [ "@$HOST" != "@fi
xme" ]
| qmail-inject -f "$SENDER" -- "$DEFAULT"


How can I force it to keep the sender information? The manual pages
say if qmail-inject is used with the option -f then ALL variables are
cleared.

Thanks,
Antje

Reply via email to