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