1#################### 2# 3# First, we'll set up values for Mail::Bulkmail 4# 5#################### 6 7 define package Mail::Bulkmail 8 9 #server_class stores the server object that we're going to use. 10 #uncomment the DummyServer line and comment out the Server line for debugging 11 12 server_class = Mail::Bulkmail::Server 13 #server_class = Mail::Bulkmail::DummyServer 14 15 #log our errors 16 ERRFILE = /etc/mb/error.txt 17 BAD = /etc/mb/bad.txt 18 GOOD = /etc/mb/good.txt 19 banned = /etc/mb/banned.txt 20 21 #by default, our precedence will be list 22 #remember, it can only be list, bulk, or junk 23 precedence = list 24 25 #we're going to recommend that you follow the 80 character per line limit 26 force80 = 1 27 28 #And we're only going to be trusting with duplicates 29 Trusting @= duplicates 30 31 #By default, we'll turn on our envelope. Mail::Bulkmail might as well use it. 32 #Mail::Bulkmail::Dynamic doesn't care about this value. 33 use_envelope = 1 34 35#################### 36# 37# Now, we'll set values for Mail::Bulkmail::Server 38# 39#################### 40 41 define package Mail::Bulkmail::Server 42 43 #set up the domain we use to say HELO to our relay 44 Domain = mydomain.com 45 46 #Most servers are going to connect on port 25, so we'll set this as the default port here 47 Port = 25 48 49 #We'll give it 5 tries to connect before we let ->connect fail 50 Tries = 5 51 52 #Lets try to reconnect to a server 5 times if ->connect fails. 53 max_connection_attempts = 5 54 55 #100 is a good number for the envelope_limit 56 envelope_limit = 100 57 58 #Send 1,000 messages to each server in the round before going to the next one. 59 #set max_messages_per_robin to 0 if you're only using one server, otherwise you'll have needless 60 #overhead 61 max_messages_per_robin = 0 62 63 #maximum number of messages per connection. Probably best to keep this 0 unless you have a reason 64 #to do otherwise 65 max_messages_per_connection = 0 66 67 #maximum number of messages for the server. Probably best to keep this 0 unless you have a reason 68 #to do otherwise 69 max_messages= 0 70 71 #maximum number of messages to send before sleeping, probably best to keep this 0 unless you need 72 #to let your server relax and sleep 73 max_messages_while_awake = 0 74 75 #sleep for 10 seconds if we're sleeping. This line is commented out because we don't need it. 76 #No harm in uncommenting it, though. 77 #sleep_length = 10 78 79 #time_out is how long we'll wait for a response code from a server before giving up. This should 80 #be pretty high 81 time_out = 3000 82 83 #talk_attempts is how many times we'll try to re-send a command after a 400 level (temporary) error 84 #this should be fairly low 85 talk_attempts = 5 86 87 #our list of servers 88 server_file = /etc/mb/servers.txt 89 90 #we can log the full SMTP conversation. ONLY turn this on for debugging purposes. 91 #this file is going to get HUGE. 92 #CONVERSATION = /etc/mb/conversation.txt 93 94#################### 95# 96# Now, we'll set values for Mail::Bulkmail::DummyServer 97# 98#################### 99 100 define package Mail::Bulkmail::DummyServer 101 102 #Our dummy data file, for when we're using DummyServer. It's also useful to send the data to 103 #/dev/null to test things if you don't care about the message output. 104 dummy_file = /etc/mb/dummy.file 105 #dummy_file = /dev/null 106 107 108#################### 109# 110# Now, we'll set values for Mail::Bulkmail::Dynamic 111# 112#################### 113 114 define package Mail::Bulkmail::Dynamic 115 116 #it is highly recommended that quotemeta be 1 117 quotemeta = 1 118 119 #set up our default delimiters 120 dynamic_message_delimiter = ; 121 dynamic_message_value_delimiter = = 122 dynamic_header_delimiter = ; 123 dynamic_header_value_delimiter = = 124