»
[ :: ]
 »  » Li Q Corner *BSD- OS sendmail localhost [freebsd]
  • 1 1 Skip to Page:
  • 1
< | >
: sendmail localhost [freebsd]
#1 Skip to the next post in this topic.
: 07 2011, 19:39

Avatar




: Li psychos
: 380
: 2005

Offline
/etc/mail/freebsd.mc


DAEMON_OPTIONS(`Name=IPv4, Family=inet')


FEATURE(no_default_msa)dnl
DAEMON_OPTIONS(`Name=IPv4, Addr=localhost, Family=inet')




cd /etc/mail
make
make install

/etc/rc.d/sendmail restart





# sockstat | grep -i send
smmsp sendmail 88783 3 dgram -> /var/run/log
root sendmail 88779 3 tcp4 127.0.0.1:25 *:*
root sendmail 88779 4 dgram -> /var/run/logpriv
# telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ESMTP Sendmail 8.14.4/8.14.4; Mon, 7 Mar 2011 17:28:13 GMT
ehlo mail
250- Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP

"Linux is for people who hate Windows, BSD is for people who love UNIX"
:  gog

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
#2
Skip to the previous post in this topic. : 08 2011, 10:23

Avatar




: Li psychos
: 813
: 2005

Offline
default ( , modification- ) localhost


cat /etc/defaults/rc.conf | grep sendmail
mta_start_script="/etc/rc.sendmail"
# Settings for /etc/rc.sendmail and /etc/rc.d/sendmail:
sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO).
sendmail_pidfile="/var/run/sendmail.pid" # sendmail pid file
sendmail_procname="/usr/sbin/sendmail" # sendmail process name
sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
sendmail_submit_enable="YES" # Start a localhost-only MTA for mail submission
sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost"
sendmail_outbound_enable="YES" # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only)
sendmail_msp_queue_enable="YES" # Dequeue stuck clientmqueue mail (YES/NO).
sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"
# Flags for sendmail_msp_queue daemon.
sendmail_rebuild_aliases="NO" # Run newaliases if necessary (YES/NO).


sendmail_submit_enable="YES"

sockstat | grep -i sendmail
smmsp sendmail 2345 3 dgram -> /var/run/log
root sendmail 2314 3 dgram -> /var/run/logpriv
root sendmail 2314 4 tcp4 127.0.0.1:25 *:*
:  quintessence

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
< | >
1 () 07 2011, 19:39
  • 1 1 Skip to Page:
  • 1
 »  » Li Q Corner *BSD- OS sendmail localhost [freebsd]

© 2014 Linux Index Project
Powered by iF 1.0.0 © 2006 ikonForums