Solved

sendmail.cf without m4

Posted on 2013-11-11
4
424 Views
Last Modified: 2013-12-30
I have a redhat linux server that send log files to various users. We have recently migrated our email to office365 and I can not send anymore because our stmp server has changed.  I have read many documents on configuring the sendmail.mc file. It requires using m4 to produce the sendmail.cf file. I can not use m4 because sendmail-cf was not installed on the server. We can not install it because of support issues. However, I can make the changes directly in the sendmail.cf file. Here is what the sendmail.mc has:

divert(-1)dnl
dnl include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`SMART_HOST',`smtp.gmail.com')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`ESMTP_MAILER_ARGS', `TCP $h 587')
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A p')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`authinfo',`hash -o /etc/mail/auth/client-info.db')dnl
dnl #
dnl # Rudimentary information on creating certificates for sendmail TLS:
dnl #
dnl #     cd /etc/pki/tls/certs;
dnl #      make sendmail.pem
dnl #
define(`confAUTH_OPTIONS', `A p')dnl
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`relay_based_on_MX')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`mybrcc.edu')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(`mybrcc.edu')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(cyrusv2)dnl


I need this translated into sendmail.cf file. Thanks in advance.
0
Comment
Question by:rsolomon
  • 2
4 Comments
 
LVL 28

Expert Comment

by:Jan Springer
ID: 39641557
You can configure the sendmail.cf file directly (and carefully).

It's just not clear what has changed with regard to this mail server so that I can advise of the changes needed.
0
 
LVL 19

Expert Comment

by:xterm
ID: 39646392
Here you go, sendmail.txt is attached (it wouldn't take .cf). I had to correct two lines in your mc file:
dnl include(`/usr/share/sendmail-cf/m4/cf.m4')dnl

changed to:
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl

and:
FEATURE(`access_db', `hash -T -o /etc/mail/access.db')dnl

changed to:
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
sendmail.txt
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 39650580
Postfix is default on EL6... It replaces sendmail just fine and has primary config in text files...
If you want to edit cf file you need to get veeryy old UNIX manuals or books (before 2000 is a good try)
0
 
LVL 62

Expert Comment

by:gheist
ID: 39745794
A simple point - recent (like post-2000) sendmail releases do not document cf file editing and make config using m4...
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question