sendmail help?

Adam Bozanich abozan01 at ccsf.edu
Wed Jan 21 23:33:59 PST 2004


Hi all.  I am having a really hard time getting sendmail to work for me.
I have a dial up DSL account that gives me an outgoing smtp account that
requires smtp authentication.

For now, I'd simply like to be able to send mail from this local machine.
I think the problem I am having is that the "from:" field in emails still
has my local user name, rather than the one required by my isp.

Here is the sendmail section of /etc/rc.conf:

###  Mail Transfer Agent (MTA) options  ######################
##############################################################

mta_start_script="/etc/rc.sendmail"
			# Script to start your chosen MTA, called by /etc/rc.
# Settings for /etc/rc.sendmail:
sendmail_flags="-L sm-mta -bd " # 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 -ODaemonPortOptions=Addr=localhost"
				# Flags for localhost-only MTA
sendmail_outbound_enable="YES"	# Dequeue stuck mail (YES/NO).
sendmail_outbound_flags="-L sm-queue -q1m " # 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"
sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q1m "



I don't really understand this at all.  I changed the -q1m parts because
I don't want sendmail to wait to send stuff... but I'm not sure if I should
have.

What does sendmail_msp_que do?  Do I need it?


Here is the configuration I am using.  I have added 'authinfo' to the hashes
that the makefile looks after.

I hope someone can help, I'm stuck.

Thanks,
Adam

VERSIONID(`kayak.mc')dnl
OSTYPE(freebsd5)dnl

undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl

define(`ALIAS_FILE', `/etc/mail/aliases')dnl
define(`SMART_HOST',`smtp.sbcglobal.yahoo.com')dnl
define(`confCON_EXPENSIVE',`True')dnl
define(`SMTP_MAILER_FLAGS',`e')dnl
define(`confAUTH_MECHANISMS',`CRAM-MD5 PLAIN LOGIN')dnl

FEATURE(`authinfo',`hash -o /etc/mail/authinfo')dnl

define(`confTO_QUEUEWARN',`')dnl
define(`confTO_INITIAL',`10s')dnl
define(`confTO_CONNECT',`10s')dnl
define(`confTO_ICONNECT',`10s')dnl
define(`confCW_FILE',`/etc/mail/local-host-names')dnl


FEATURE(`always_add_domain')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`nocanonify')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl

FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`accept_unresolvable_domains')dnl

MAILER(`local')dnl
MAILER(`smtp')dnl

#
# aliases:
#
root:	adam at kayak
etc...

#
# genericstable:
#

# who is who on the outside
adam			         my_addy at my_ip.net
adam at kayak        	my_addy at my_ip.net
adam at kayak.flatland	my_addy at my_ip.net

root			         my_addy at my_ip.net
root at kayak           my_addy at my_ip.net
root at kayak.flatland	my_addy at my_ip.net

#
# local-host-names:
#

localhost
kayak
kayak.flatland
localhost.flatland

#
# genericsdomain
#

localhost
kayak
kayak.flatland
localhost.flatland

#
# authinfo:
#

AuthInfo:my_isp.net "I:my_addy at my_isp.net" "P:Pass"




More information about the freebsd-questions mailing list