Anilkumar wrote:
> but i don't want this, what i need is that my
> authentication e-mail id and my from e-mail id should
> be same. other wise it should not relay my mail
> altough i have valid vpopmail a/c. that way neither me
> nor any of my user and change his from e-mail id.

The SMTP Auth plugin only cares about two things:

1) username to authenticate with;
2) password associated with that username.

I think your mode of operation is likely to be very uncommon in practce and
will, in fact, cause you no end of grief.  For example, I have multiple profiles
relaying out the same SMTP host, only some of which are "internal" addresses.  I
specifically block all Port 25 traffic except for known servers, so I couldn't
relay my "external" mail via some other server, even if I wanted to.

> please suggest me some solution for this.

You can either rewrite the auth_vpopmail_sql plugin or you could use the plugin
wrapping functionality; see the README.plugins section on inheritance.  You
would then compare the $transaction->sender() with the $user.

John

Reply via email to