On 2013-01-21 21:20, Sam Varshavchik wrote: > Papo Napolitano writes: > >> Hi list. >> >> I'm using freemail to prevent spammers send me mail from my own domain. >> As I have no control over the reverse address of the cable connection in >> my office, I added this line to my bofh file : >> >> freemail dosalcubo.com 45-141-137-186.fibertel.com.ar >> >> The problem is the morons at my ISP didn't configure the A record for >> such reverse address : >> >> $ dig 45-141-137-186.fibertel.com.ar | grep status >> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26476 >> >> So I tried adding this to esmtproutes : >> >> 186.137.141.45/32 allow,RELAYCLIENT,BOFHCHECKDNS=0 > > This looks like something to go into smtpaccess, and not esmtproutes
Actually is in smtpaccess (my bad) : # grep 186.137.141.45 /etc/courier/smtpaccess/default 186.137.141.45/32 allow,RELAYCLIENT,BOFHCHECKDNS=0 Also in the .dat file : # grep -c 186.137.141.45 /etc/courier/smtpaccess.dat 1 > >> >> But it's not working. > > Define "not working". If RELAYCLIENT is set, the IP address is exempt > from the freemail check. > > Now, if you're sending mail, and you're connecting from some other IP > address to this server, and you're using this domain, then since you're > connecting from some other IP address you're not going to pass this check. I mean this : Jan 22 12:15:20 STORAGE2 courieresmtpd: error,relay=186.137.141.45,from=<p...@dosalcubo.com>: 517-Sender rejected: p...@dosalcubo.com can be accepted only from dosalcubo.com's mail relays. > > If you have full control over DNS, you can achieve the same results by > using SPF. > I do have full control and SPF is (AFAIK) set : # dig +short txt dosalcubo.com "v=spf1 ip4:186.137.141.45/32 ip4:181.14.238.128/29 ip4:181.14.243.8/29 ip4:200.82.80.233/32 ip4:200.82.80.234/32 ip4:50.57.160.80/32 mx ~all" Worth mentioning this same setup was working fine, don't know what could have changed in the last two weeks. No updates to courier, DNS, or IP addresses. Is there any way to debug what's triggering that error? Thanks.- ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users