Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

Sendercheck Patch

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


bhadauria.nitin at gmail

Aug 20, 2011, 1:37 AM

Post #1 of 1 (588 views)
Permalink
Sendercheck Patch

Dear All,


I am facing a problem with my current qmail setup, I will describe it with
following logs..

qmail-smtpd 18799: enabled options: max msg size: 25165824 sanitycheck
blockrelayprobe sendercheck-strict rcptcheck smtp-auth authrequired
qmail-smtpd 18799: authentication success, user Authenticated:*abc*
qmail-smtpd 18799: mail from: *xyz [at] domain*
qmail-smtpd 18799: rcpt to: someone [at] domain


Now as you can see that i am using smtp-auth with sendercheck-strict. But
still any authenticated user in my domain can send mail using any "Mail
from:" address.

I am looking for a patch that allow me to restrict that the authenticated
userid can only me used as mail from: adderss.

Please reply with your suggestion...

I am looking at follwing codes in qmail-smtpd.c

/* check if sender exists in ldap */
if (sendercheck && !bounceflag) {
if (!goodmailaddr()) { /* good mail addrs go through anyway */
logline(4,"sender verify, sender not in goodmailaddr");
if (addrlocals()) {
char *s;
logline(4,"sender verify, sender is local");
*switch (ldaplookup(addr.s, &s)) {*
case 1: /* valid */
logline(4,"sender verify OK");
break;
case 0: /* invalid */
logline2(2, "bad sender: ", addr.s);
err_554msg(s);
if (errdisconnect) err_quit();
return;
case -1:
default: /* other error, treat as soft 4xx */
if (ldapsoftok)
break;
err_soft(s);
if (errdisconnect) err_quit();
return;
}


--
Regards,
Nitin B.
mob: 09313772595
linkedin: http://in.linkedin.com/pub/nitin-bhadauria/14/57/382
twitter: @bhadauria_nitin

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.