I don't think I did a good job of describing my problem.  The
problem occurs when one of my customers attempts to send
a message using a broken mail client like Eudora.  They will
only put the username in instead of the full email address when
sending mail to someone else at the same domain.

The fixup has fixed this problem, but has caused another problem.
When a customer doesn't type the full email address and only
puts in a username, the fixup will append the full hostname after
the username they entered.  So "rmcmilln" would become
something like [EMAIL PROTECTED]  I don't want it to append
the hostname of the server, I specifically want it to append just
"iland.net" on the end which would make just "rmcmilln" become
[EMAIL PROTECTED]

When it does append the full hostname, it defeats the purpose of
the load balanced array of servers that we have because instead
of mail being directed to our array for our load balancer to distribute,
mail goes to that specific server instead.

Rick

----- Original Message -----
From: Harald Hanche-Olsen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 22, 1999 2:45 PM
Subject: Re: Broken mail clients and fixup


> - "Rick McMillin" <[EMAIL PROTECTED]>:
>
> | I've implemented the "fixup" which appends the hostname
> | of the server to incomplete email addresses for mail clients
> | like Eudora which allow people to enter just a username
> | instead of a complete email address.
> |
> | My problem now is that since it puts in the full hostname
> | of the server, it defeats the purpose of our server array
> | since the messages are directed towards a specific server
> | instead of to our array so it can be load balanced.
>
> You probably haven't created control/defaulthost with your domain name
> in it.  It should cure your problem, I think.
>
> | What I'd like to know is can a domain name be hard-coded
> | in the fix?  I assume this would be done in the
> | ~alias/.qmail-fixup-default file.  Right now, QMail will rewrite
> | broken addresses to be [EMAIL PROTECTED] and
> | I want to force it to write the address as [EMAIL PROTECTED]
> | Is this possible?
>
> Yes, if the mail comes in with blatantly wrong addresses and you want
> qmail-inject to change them.  But my impression from your problem
> descrition is that messages come in without a domain in the from
> addresses, and then defaulthosts will take care of that.
>
> To force another address, use the line
>
> |QMAILINJECT=f QMAILHOST=domain.com qmail-inject -f "$SENDER" --
"$DEFAULT"
>
> | I've tried changing this line:
> |
> | | [ "@$HOST" = "@fixme" ] || ( echo Permission denied; exit 100 )
> |
> | to something like this:
> |
> | | [ "@domain.com" = "@fixme" ] || ( echo Permission denied; exit 100 )
> |
> | with no luck.
>
> Indeed; that test will always fail.  You just turned off the access
> control to your script.  Just change it back.  You changed the wrong
> line anyhow.
>
> | Also, am I correct that this fix only affects emails that contain
> | incomplete email addresses (i.e. username without "@domain.com")?
>
> Yes, unless you set the QMAILINJECT variable like above.  If you do
> set it, you will always override the sender's wishes, which may or may
> not be what you want to do.
>
> - Harald
>

Reply via email to