# sample odmrd 0.9 config file # # case (in keywords) doesn't matter # emtpy lines or lines starting # or ; are skipped # the shown values are (usually) the defaults # # shows more information in syslog, so maybe it should be called $verbose. #debug 0 ##### database settings ############## # # by default, we leave this up to the mysql client lib, # which uses the socket on the local machine # # use a different socket (e.g. in a chrooted env.) #mysql_socket /var/lib/mysql/mysql.sock # mysql server runs on another machine #mysql_host localhost #mysql_port 3306 #mysql_user odmr # probably the only thing you have to change mysql_pass xxxxxxx #mysql_db odmr # account your odmr traffic #acct_mysql 1 ##### standalone-mode settings ######## # run in standalone mode (instead of inetd) #standalone 0 # detach from console #daemon 0 # IP address to listen to in standalone mode # use multiple times if you want more than one # listens to all (0.0.0.0) by default #server_ip 0.0.0.0 # port to listen to in standalone mode (366 by default) # use multiple times if you want more than one #server_port 366 # setuid to this user (odmr by default) #user odmr # setgid to this group (the main group of the user set above by default) #group ##### end of standalone-mode settings ### # location of the spool directory #spool /var/spool/odmr # the name odmr presents if you connect to it. # If empty, odmrd resolves IP of the connected interface, # so if your DNS is set up correctly, the right host name is shown. #hostname your-host.net # timeout in seconds for dns lookups #timeout_dns 15 # time in seconds odmr waits for a command, beforce he disconnects (default: 2min) #timeout_cmd 120 # maximum time to send a whole message. # This is hard timeout, so if you have messages that # take longer than 30min you have to increase this. (default: 30min) #timeout_msg 1800 # the number of maximum invalid commands that odmr accepts before closing the connection #max_invalid_cmds 3 # the number of maximum failed authentication tries #max_invalid_auth 3 # time (in days) after which a message will be bounced back (0 is infinite) #max_msg_age 0 # extension of lockfiles #lockext ..LCK # use linux' sendfile call (zero-copy) # very efficient, but you need the experimental Perl module # IO-sendfile2 (http://plonk.de/sw/sendfile/IO-sendfile2-0.2.tar.gz) #use_sendfile 0 # where we put the pidfile in standalone mode #pidfile /var/run/odmrd/odmrd.pid # allow AUTH via LOGIN (only for testing) #allow_login 0 # path to your sendmail-compatible binary (for bouncing) #sendmail /usr/sbin/sendmail # SQL queries - if you have a non-standard db structure # sql query to get user's password. # bind_value format with ? as user #sql_pass SELECT pass FROM user WHERE user=? # sql query to get list of domains for user # bind_value format with ? as user #sql_domainlist SELECT domain FROM domain WHERE user=? # sql query to check if a domain is OK for user. # bind_value format with ?, ? for user, domain (observe order!) #sql_checkdomain SELECT count(*) FROM domain WHERE user=? AND domain=? LIMIT 1 # the table for accounting records (only if acct_mysql is 1) #sql_acct_table acct ##########################