diff options
Diffstat (limited to 'etc/mailfromd.rc')
-rw-r--r-- | etc/mailfromd.rc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/etc/mailfromd.rc b/etc/mailfromd.rc index e19cac49..141e2632 100644 --- a/etc/mailfromd.rc +++ b/etc/mailfromd.rc @@ -15,8 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#error "Do not use this file 'AS IS'! Tailor it to suit your site!" - #pragma option relay "/etc/mail/sendmail.cw" #pragma option relay "/etc/mail/relay-domains" #pragma regex +extended +icase @@ -24,14 +22,27 @@ #include_once <status.mfh> #require dns +#require localdomain #require rateok set mailfrom_address "<>" -set ehlo_domain "your.domain" +# If mailfromd does not determine local domain correctly, uncomment this +# and replace DOMAIN with your local domain: +#set ehlo_domain "DOMAIN" number gltime interval("1 hour") + number need_greylist 0 +/* Begin block is executed at the beginning of each SMTP transaction. + */ +begin +do + if %ehlo_domain == "" + set ehlo_domain localdomain() + fi +done + func cachestr() returns string do if %cache_used |