sendmail and unqualified addresses


 
Thread Tools Search this Thread
Operating Systems Solaris sendmail and unqualified addresses
# 8  
Old 06-23-2007
I'm sorry for the confusion.

All I want is all mail (except root) sent to the relay. Also, if unqualified addresses are specified (those without a domain), send them to the relay. If the domain can be appended to the unqualified address, that would be nice.

I had already tried the .cf from the working server but with the latest version of sendmail using the submit.cf, local.cf and sendmail.cf, it is confusing on what to edit. I do a ps and grep for sendmail, and the config file specified is local.cf, but it seems the submit.cf gets read anyway.

If you have a submit.mc that can do this, I would appreciate it.

Thanks
# 9  
Old 06-24-2007
The different cf files serve different purposes. I'll post something later to explain. Editing the cf files is not the "correct" way to configure sendmail.
# 10  
Old 06-25-2007
Thank you very much because any help you can provide would be appreciated. I am using m4 to try and build my submit.cf to send mail, but nothing is working. Even with masquarading the domain, if I just send mail to user, it is appending @host.domain.com and the exchange server can't figure out what it is.

I just need all mail (except) root delivered to the relay. This is the mc for submit.cf and root mail still goes to the relay. Also my ps for sendmail says to use local.cf so what do I need to edit there to get this to work.

Thank you so much for anything you can do.

divert(0)dnl
divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
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(`confDONT_INIT_GROUPS', `True')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
dnl FEATURE(`msp', `[127.0.0.1]')dnl
MASQUERADE_AS(`domain.com')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`msp', `mailhost.domain.com')dnl
LOCAL_USER(`root')dnl
#


THANK YOU VERY MUCH

# ps -ef | grep sendmail
smmsp 1556 1 0 17:46:27 ? 0:00 /usr/lib/sendmail -Ac -q15m
smmsp 1555 1 0 17:46:27 ? 0:00 /usr/lib/sendmail -q15m -C /etc/mail/local.cf
root 1569 1563 0 17:52:48 pts/2 0:00 grep sendmail

Last edited by csgonan; 06-25-2007 at 10:24 PM..
# 11  
Old 06-25-2007
I have made some progress. The submit.mc file listed here allows me to send mail out without a domain name, so (ie) cross was relayed to the remote server and delivered to my mailbox.

Now I need to get root mail delivered locally.

Sending mail to root (either at the command line or in a cron job), fails because it is try ing to send to the relay as root@domain.com and the exchange server doesn't know who that is. How can I get root to stay local.

This is my submit.mc and all mail is correctly relaying to the exchange server, and mail from root shows correctly as root@host.domain.com.

divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
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(`confDONT_INIT_GROUPS', `True')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
dnl FEATURE(`msp', `[127.0.0.1]')dnl
MASQUERADE_AS(`domain.com')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`msp', `mailhost.domain.com)dnl
EXPOSED_USER(`root')dnl
kristina#

This is my local.mc

divert(0)dnl
VERSIONID(`@(#)local.mc 1.1 (Sun) 08/01/06')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`NAME=NoMTA4, Family=inet, Addr=127.0.0.1')dnl
DAEMON_OPTIONS(`Name=MSA4, Family=inet, Addr=127.0.0.1, Port=587, M=E')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3

Again, thank you.

Last edited by csgonan; 06-26-2007 at 07:44 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

2. UNIX for Advanced & Expert Users

Sendmail questions, SCO 5.0.6 sendmail 8.11.0

I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back. (reason: 530 5.7.1 Authentication required) 530 5.7.1 Authentication required Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies

3. Red Hat

Sendmail - Masquerading multiple domains with different addresses

Hello Friends, I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

4. Solaris

Classic: sendmail[pid]: My unqualified host name (hostname) unknown

Hi all, I'd like to disable sendmail permanently on my "new" 220R with freshly installed SunOS 5.10 because it prints annoying messages to the system console. Also I'm interested in how to fix the actual problem with unqualified host name. My unqualified host name (hostname) unknown; sleeping... (2 Replies)
Discussion started by: pseudocoder
2 Replies

5. UNIX for Advanced & Expert Users

Sendmail adding .org after some addresses

Hello, We run a mailing list and on our server sendmail is adding .org after some addresses, e.g. the first and third entries below in the process listingroot 1528 0.0 0.1 11764 6524 ? Ss Sep21 0:01 sendmail: ./p8NMgM0X031218 dimaventures.com.org.: user open root ... (1 Reply)
Discussion started by: prautt
1 Replies

6. Shell Programming and Scripting

sendmail script throwing an error "No recipient addresses found in header"

Hi, I am using following code to send an e-mail with attachment and body. echo "To: user1@mail.com,user2@mail.com" > mail.tmp echo "Cc: user3@mail.com,user4@mail.com" >> mail.tmp echo "From: group@mail.com" >> mail.tmp echo "Subject: my report" >> mail.tmp echo "please see as attached"... (6 Replies)
Discussion started by: vivek_damodaran
6 Replies

7. UNIX for Dummies Questions & Answers

Unqualified Host at boot

I'm sure this is as basic as they get. I installed Solaris 10 x86 on a compaq 7500 that I switched motherboards out with an AMD processor. Since I installed, I've gotten the "unqualified host name" message at boot plus I"m not sure how to find my NIC (or if the driver is installed). I only show... (7 Replies)
Discussion started by: ltillman
7 Replies

8. Solaris

My unqualified host name

Hi experts . . . host name: prd47e Sunsolaris 9 version My mails are not going and am gettin regular messages like: * My unqualified host name (prd47e) unknown; sleeping for retry * unable to qualify my own domain name (prd47e) -- using short name my /etc/hosts file contnets are... (6 Replies)
Discussion started by: vrjalli
6 Replies

9. Solaris

Unqualified host name

Hi All I am Having V890 Server with Solaris 10 OS.In Dmesg showing the sendmail error. This is the error: Jul 26 22:04:56 ORACLE sendmail: My unqualified host name (ORACLE) unknown; sleeping for retry Jul 26 22:05:56 ORACLE sendmail: unable to qualify my own domain name (ORACLE) -- using... (5 Replies)
Discussion started by: ravigpb
5 Replies

10. UNIX for Dummies Questions & Answers

dmesg on a sun, unqualified host

Oct 22 01:01:47 sendmail: My unqualified host name unknown; sleeping for retry Oct 22 01:02:47 sendmail: unable to qualify my own domain name -- using short name how to resolve this error thanks (11 Replies)
Discussion started by: yls177
11 Replies
Login or Register to Ask a Question