Symantec BRIGHTMAIL Installation Guide - Page 46

Configuring Sendmail for Brightmail Scanner with sendmail.cf

Page 46 highlights

Configuring Sendmail for the Brightmail Filter Configuring Sendmail for Brightmail Scanner with sendmail.cf There are two ways to configure Sendmail to work with Symantec Brightmail AntiSpam. You can either edit the sendmail.cf file, or you can use m4 to generate a new sendmail.cf file. This section covers what you need to know to use sendmail.cf to configure Sendmail. To use m4, refer to "Configuring Sendmail for Brightmail Scanner with M4," on page 41. NOTE: Before completing this procedure, make sure you have followed the instructions in "Enable Sendmail External Filtering," on page 17. 1 Log in as root. 2 Open the Sendmail configuration file, sendmail.cf, for editing. The sendmail.cf file is usually located in /var/mail/sendmail.cf or /etc/mail/sendmail.cf. 3 In the OPTIONS section, add the Brightmail Filter as follows: OPTIONS O InputMailFilters=bmifilter 4 In the MAIL FILTER DEFINITIONS section, enter the following line to complete the socket for the Brightmail Filter configuration: Xbmifilter, S=inet:[email protected]_domain.com Refer to "Understanding the Filter Address and Optional Settings," on page 33 for information on address values. 5 Save the file. 6 Stop Sendmail: # /etc/init.d/sendmail stop 7 Verify that Sendmail is no longer running: # ps -ef | grep sendmail If any processes are shown other than grep, send a SIGTERM to each process to terminate it: # kill process_id 8 Restart Sendmail: # /etc/init.d/sendmail start 40 Symantec Brightmail AntiSpam™

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160

Configuring Sendmail for the Brightmail Filter
40
Symantec
Brightmail AntiSpam™
Configuring Sendmail for the Brightmail Filter
Configuring Sendmail for Brightmail Scanner with sendmail.cf
There are two ways to configure Sendmail to work with Symantec Brightmail AntiSpam.
You can either edit the
sendmail.cf
file, or you can use
m4
to generate a new
sendmail.cf
file. This section covers what you need to know to use
sendmail.cf
to
configure Sendmail. To use
m4
, refer to
“Configuring Sendmail for Brightmail Scanner
with M4,” on page 41
.
NOTE:
Before completing this procedure, make sure you have followed the instructions in
“Enable Sendmail External Filtering,” on page 17
.
1
Log in as
root
.
2
Open the Sendmail configuration file,
sendmail.cf
, for editing. The
sendmail.cf
file is usually located in
/var/mail/sendmail.cf
or
/etc/mail/sendmail.cf.
3
In the
OPTIONS
section, add the Brightmail Filter as follows:
4
In the
MAIL
FILTER
DEFINITIONS
section, enter the following line to complete the
socket for the Brightmail Filter configuration:
Refer to
“Understanding the Filter Address and Optional Settings,” on page 33
for
information on address values.
5
Save the file.
6
Stop Sendmail:
7
Verify that Sendmail is no longer running:
If any processes are shown other than
grep
, send a
SIGTERM
to each process to
terminate it:
8
Restart Sendmail:
OPTIONS
O InputMailFilters=bmifilter
Xbmifilter, S=inet:
port
@
machine.your_domain.com
#
/etc/init.d/sendmail stop
#
ps -ef | grep sendmail
# kill
process_id
#
/etc/init.d/sendmail start