|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sendmail 8.12
Scenario: I use sendmail as a client against my mail server at verizon.net
Can anybody see from this sendmail.mc file why this would work for RH 7.3 with sendmail 8.11 but not with RH 8.0 and sendmail 8.12? The problem I am having is that bob@localhost.localdomain or apache@localhost.localdomain is not being changed per genericstable to mymailname@verizon.net or webmaster@mywebpage.com. The only thing I have seen changed in 8.12 is the way AUTH is performed when using sendmail as a client and I have already changed the DEF_AUTH_INFO to the (authinfo) scenario but it is not even getting to that point yet. I hope this is clear enough to have someone point me in the right direction. divert(-1) dnl This is the sendmail macro config file. If you make changes to this file, dnl you need the sendmail-cf rpm installed and then have to generate a dnl new /etc/sendmail.cf by running the following command: dnl dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf dnl include(`/usr/share/sendmail-cf/m4/cf.m4') VERSIONID(`linux setup for Red Hat Linux')dnl OSTYPE(`linux') define(`SMART_HOST',`outgoing.verizon.net')dnl define(`confDEF_USER_ID',``8:12'')dnl undefine(`UUCP_RELAY')dnl undefine(`BITNET_RELAY')dnl dnl define(`confAUTO_REBUILD')dnl define(`confTO_CONNECT', `1m')dnl define(`confTRY_NULL_MX_LIST',true)dnl define(`confDONT_PROBE_INTERFACES',true)dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl define(`ALIAS_FILE', `/etc/aliases')dnl dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl dnl define(`UUCP_MAILER_MAX', `2000000')dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl define(`confAUTH_OPTIONS', `A')dnl define(`confDEF_AUTH_INFO',`/etc/mail/default-auth-info')dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl dnl define(`confTO_QUEUEWARN', `4h')dnl dnl define(`confTO_QUEUERETURN', `5d')dnl dnl define(`confQUEUE_LA', `12')dnl dnl define(`confREFUSE_LA', `18')dnl dnl FEATURE(delay_checks)dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(genericstable)dnl GENERICS_DOMAIN(verizon.net)dnl FEATURE(`no_default_msa',`dnl')dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl FEATURE(redirect)dnl FEATURE(always_add_domain)dnl FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl dnl FEATURE(`access_db',`hash -o /etc/mail/access.db')dnl dnl FEATURE(`blacklist_recipients')dnl EXPOSED_USER(`root')dnl dnl This changes sendmail to only listen on the loopback device 127.0.0.1 dnl and not on any other network devices. Comment this out if you want dnl to accept email over the network. DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA') dnl DAEMON_OPTIONS(`Port=smtp-backdoor,Name=MTA') dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires dnl a kernel patch dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6') dnl We strongly recommend to comment this one out if you want to protect dnl yourself from spam. However, the laptop and users on computers that do dnl not have 24x7 DNS do need this. FEATURE(`accept_unresolvable_domains')dnl dnl FEATURE(`relay_based_on_MX')dnl MAILER(smtp)dnl MAILER(procmail)dnl dnl MASQUERADE_AS(`verizon.net')dnl #Cwlocalhost.localdomain |
|
#2
|
|||
|
|||
|
RE: sendmail 8.12
Did you set your domain names in /etc/mail/local-host-names ?
If not add each domain on a single line moo.com moo_cow.com Let me know if this helps |
|
#3
|
|||
|
|||
|
RE: sendmail 8.12
After about 4 hours:
In looking over the documentation for sendmail 8.12 i noticed that there is a new daemon MSP .It looks like the FEATURE(genericstable) uses that daemon instead of the MTA daemon and therefore the genericstable.db hash needs to have file permissions set to new user and group smmsp:smmsp. (see RH Bugzilla Bug-75862). The makemap program by default sets this file to 0640 root:root. I am going to try this when I get home tonight. |
|
#4
|
|||
|
|||
|
RE: sendmail 8.12
Let me know if it works. I am going to be upgrading soon myself. Just curious are you using SMTP Auth? If so how painfull was it to setup?
|
|
#5
|
|||
|
|||
|
RE: sendmail 8.12
that didnt work in itself,but I noticed there is a submit.mc and a submit.cf file in the mail directory. looks like it might be something I need.Take a look at this. this is the first time I have seen this.
this is the submit.mc file: divert(-1) # # Copyright (c) 2001, 2002 Sendmail, Inc. and its suppliers. # All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # # # This is the prototype file for a set-group-ID sm-msp sendmail that # acts as a initial mail submission program. # divert(0)dnl include(`/usr/share/sendmail-cf/m4/cf.m4') VERSIONID(`linux setup for Red Hat Linux')dnl define(`confCF_VERSION', `Submit')dnl define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet define(`confTIME_ZONE', `USE_TZ')dnl define(`confPID_FILE', `/var/run/sm-client.pid')dnl dnl define(`confDIRECT_SUBMISSION_MODIFIERS',`C') FEATURE(`msp')dnl dnl FEATURE(`use_ct_file')dnl Any suggestions???? |
|
#6
|
|||
|
|||
|
RE: sendmail 8.12
Hey Dude,
Read the Masquerading section it may be your answer. http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/ref-guide/s1-email-sendmail.html#S2-EMAIL-SENDMAIL-CHANGES |
|
#7
|
|||
|
|||
|
RE: sendmail 8.12
That does work as far as changing the domain name so it sends as bob@verizon.net. What I was using the genericstable for was to resolve the left side of the @ to my real user name. Verizons MTA will only accept the right name even though the AUTH sends the username and password . so robert.tucci@verizon.net will work with user"xxx" and pass"xxx" but bob@verizon.net wont. the genericstable .And guess what!! I just changed my option GENERICS_DOMAIN(verizon.net)( which is working on my RH 7.3 box with sendmail 8.11) to GENERICS_DOMAIN(localhost.localdomain) and it is now sending the proper envelope!!! Now all I have to do is get the (authinfo) working. I had the "default-auth-info" working in 8.11 but it doesnt work in 8.12 without deleting rulesets from the .cf file. I'll let you know what I find and then post all the pertinent files for you. More to follow........
|
|
#8
|
|||
|
|||
|
RE: sendmail 8.12
I guess tenacity is a virtue. I finally got the @#@$%$# thing working. I am going to try trimming down the options one at a time to see which extraneous ones are in the config file. The AUTH part was fairly straightfoward once I taught myself sendmailese. I will
lay out all the files when I am done. Do you think this rates a small tutorial? Cheers! |
|
#9
|
|||
|
|||
|
RE: sendmail 8.12
I think it would be a great tutorial. Ask matt@codewalkers.com see if he is interested in posting it.
|
|
#10
|
|||
|
|||
|
RE: sendmail 8.12
Quote:
Yep, if you make it, I will post it |
|
#11
|
|||
|
|||
|
RE: sendmail 8.12
Well, theres your answer from the omnipotent one.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > sendmail 8.12 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|