11-20-2002
Check your /etc/mail/sendmail.cf file for the following:
# who I send unqualified names to (null means deliver locally)
DR
# who I masquerade as (null for no masquerading) (see also $=M)
DM
If there are no entries here, it may be that the user you attempted to send to is not in the /etc/passwd file and it did not know where to send this to thus it gives an error. Since you are sending to your domain (someuser@my_company.com) and if those fields are blank, then it did not know where to send the email to. So it checks /etc/passwd for the username. If it's not there, it can then check /etc/mail/aliases for an alias for the user name
somuser:
someuser@otherserver.my_company.com
If there isn't an alias, it won't send.
At some point there has to be a mail server that knows about all the users. My environment had an Exchange server so all email not specifically for the internet (someone@not_my_domain.com) or not specifically for a local user or aliases ( allunixadmins: joe, tom, charlie, scott) would go to the Exchange server. If your Sendmail server will be the main mail hub, then all users must be listed in /etc/passwd or have an alias set up in /etc/mail/aliases.
You need to check out the FAQ at
Sendmail and/or read the Sendmail book to figure out how you want to move mail around. Once you figure that out, more specific help can be given.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix. I want to know what are the steps to do in order to configure a unix server (Solaris 8) to send mails to the outside world. I also want to send attachments in the mail.
Thanks in advance
Zing (2 Replies)
Discussion started by: zing
2 Replies
2. UNIX for Dummies Questions & Answers
Using Mailx command i.e
mailx -s "subject" chinni@hotmail.com < \tmp\chin
this command executed sucessfully but not able to receive the mail in chinni@hotmail.com
please help. (1 Reply)
Discussion started by: chinnigd
1 Replies
3. HP-UX
We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies
4. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
5. Shell Programming and Scripting
Hi all,
I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can sent from the unix server to my outlook account,I can't send from outlook to unix.
How can I achieve this ? How can I send a mail from my outlook or other... (5 Replies)
Discussion started by: igelegin
5 Replies
6. UNIX for Advanced & Expert Users
Hi all,
I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix.
How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies
7. Shell Programming and Scripting
Hello,
I am using centos-6.2
I have apache server,php5 on my system and I want to send mail using sendmail on my system.
when I try to send mail from shell that time mail is succesfully sent to respective address()
but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies
8. UNIX for Beginners Questions & Answers
On Red Hat Enterprise Linux Server release 6.8.
I am to get the email from my LINUX box on gmail account but it fails on company domain.
getting status=sent for gmail. BUT
getting below error for company domain:
status=bounced
#5.1.8 Domain of sender address <root@xxxx.com> does not exist... (16 Replies)
Discussion started by: nadeemrafikhan
16 Replies
9. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT OPENSOLARIS
sendmail
sendmail(4) File Formats sendmail(4)
NAME
sendmail, sendmail.cf, submit.cf - sendmail configuration files
SYNOPSIS
/etc/mail/sendmail.cf
/etc/mail/submit.cf
DESCRIPTION
The sendmail.cf and submit.cf files are the configuration files for sendmail(1M). Starting with version 8.12 of sendmail, which was shipped
with version 9 of the Solaris operating system, two configuration files are used for submission and transmission of mail, instead of only
sendmail.cf, as before. These are:
sendmail.cf Remains the principal sendmail configuration file. Used for the Mail Transmission Agent (MTA).
submit.cf Used for the Mail Submission Program (MSP). The MSP is used to submit mail messages. Unlike the MTA, it does not run as an
SMTP daemon.
The MSP does not require root privileges, thus the two-file model provides better security than the pre-sendmail 8.12 model, in which the
MSP ran as a daemon and required root privileges.
In the default sendmail configuration, sendmail uses submit.cf, as indicated in ps(1) output. In ps output, you will observe two sendmail
invocations, such as the ones below:
/usr/lib/sendmail -Ac -q15m
/usr/lib/sendmail -bd -q15m
The first indicates the use of submit.cf, with the client queue (/var/spool/clientmqueue) being checked--and, if needed, flushed--every 15
minutes. The second invocation runs sendmail as a daemon, waiting for incoming SMTP connections.
As shipped, sendmail.cf and, in particular, submit.cf, are appropriate for most environments. Where a knowledgeable system administrator
needs to make a change, he should use the following procedures.
For sendmail.cf:
1. Change directories to the directory that contains the source files for the configuration files.
# cd /etc/mail/cf/cf
2. Create a copy of the sendmail file for your system.
# cp sendmail.mc `hostname`.mc
3. Edit `hostname`.mc. Make changes suitable for your system and environment.
4. Run make to generate the configuration file.
# /usr/bin/make `hostname`.cf
5. Copy the newly generated file to its correct location.
# cp `hostname`.cf /etc/mail/sendmail.cf
6. Restart the sendmail service.
# svcadm restart sendmail
You must restart sendmail for sendmail.cf file changes to take effect, as indicated in step 6. Steps 4 - 6 can be automated. See Automated
Rebuilding of Configuration Files below.
For submit.cf:
1. Change directories to the directory that contains the source files for the configuration files.
# cd /etc/mail/cf/cf
2. Create a copy of the submit file for your system.
# cp submit.mc submit-`hostname`.mc
3. Edit submit-`hostname`.mc. Make changes suitable for your system and environment.
4. Run make to generate the configuration file.
# /usr/bin/make submit-`hostname`.cf
5. Copy the newly generated file to its correct location.
# cp submit-`hostname`.cf /etc/mail/submit.cf
You do not need to restart sendmail for changes to submit.cf to take effect. Steps 4 and 5 can be automated. See Automated Rebuilding of
Configuration Files below.
Enabling Access to Remote Clients
The sendmail(1M) man page describes how the config/local_only property can be set to true or false to disallow or allow, respectively,
access to remote clients for unmodified systems.
Setting values for the following properties for the service instance svc:/network/smtp:sendmail results in automated (re)building of con-
figuration files:
path_to_sendmail_mc
path_to_submit_mc
The values for these properties should be strings which represent the path name of the .mc files referred to in steps 2 and 3 of both pro-
cedures above. Recommended values are:
/etc/mail/cf/cf/`hostname`.mc
/etc/mail/cf/cf/submit-`hostname`.mc
Each property, if set, results in the corresponding .mc file being used to (re)build the matching .cf file when the service is started.
These properties persist across upgrades and patches. To prevent a patch or upgrade from clobbering your .cf file, or renaming it to
.cf.old, you can set the desired properties instead.
FILES
/etc/mail/cf/README Describes sendmail configuration files.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsndmr |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
make(1S), ps(1), sendmail(1M), svcadm(1M), attributes(5)
System Administration Guide: Network Services
SunOS 5.11 8 May 2008 sendmail(4)