I checked the /etc/courier/esmtpd file, there are some comments regarding to the BOFHCHECKDNS, it advices to comment out the line, I guess if I set it to 0 which will have same effect.
##NAME: BOFHCHECKDNS:0 # # Comment out the following line in order to accept mail with a bad # return address. BOFHCHECKDNS=1 I'm confused what should I set it to? I also tested with my hostname as domain name, echo "test invalid domain"|mail -s invalid k...@colinux, colinux is mapped to 127.0.0.1 in my /etc/hosts, the test can work well with this illegal name. However, it is very strange, if I try below scenario, the mail can not be sent with a syntax error, $ telnet localhost 25 Trying 127.0.0.1... Connected to colinux. Escape character is '^]'. 220 colinux ESMTP helo colinux 250 colinux Ok. mail from:<k...@colinux> 517 Syntax error. the log is, courieresmtpd: error,relay=::ffff:127.0.0.1,from=<p...@colinux>: 517 Syntax error. On Tue, Feb 24, 2009 at 8:19 AM, Jeff <[email protected]> wrote: > Ken Perl <[email protected]> wrote on 2009-Feb-23: >> When I am trying the RFC821 MAIL FROM command, I use a test email >> domain setup only on my Debian Linux box, a non FQDN name as domain >> name, the courier MTA refuses me to continue with an error like "513 >> Syntax error", >> >> MAIL FROM: <k...@linux> >> >> How to disable courier MTA to check/validate the email address in the >> MAIL or RCPT commands? > > That depends. "k...@linux" will never work in courier because "linux" is not > a > legal hostname. You've got to have a top-level domain - linux.com, linux.me, > linux.my-made-up-domain, etc. That check is hard-coded into courier and can't > be changed without editing and recompiling the source code. > > But you can tell courier not to verify whether any hostnames (like > "linux.my-made-up-domain") actually exist by setting > > BOFHCHECKDNS=1 > > in the '/etc/courier/esmtpd'. > > Rather than turning off the check globally, you can turn it off only for > certain > ip addresses, like localhost. Check out the /etc/courier/smtpaccess/default > file (or any file in the 'smtpaccess' directory). If you put > > 127.0.0.1<TAB>BOFHCHECKDNS=1 > > in that file and then run 'makesmtpaccess', courier will ignore the check when > connecting to localhost, but not otherwise. (Make sure you use the TAB > character to separate the items. Spaces won't work.) > > HTH > > Jeff > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > courier-users mailing list > [email protected] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users > -- perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\...@`` ")' ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
