Solved

Sendmail masquerading on Solaris 10

Posted on 2006-11-17
5
600 Views
Last Modified: 2013-12-05
Hi,
I need to setup the return address of the box on a Solaris 10 system to be user@domainname.com.
On Linux, I configured a null client setup using /etc/mail/submit.mc.

I guess the same does work on solaris. I tried an alternative approach by adding the following line to /etc/mail/sendmail.cf.


#####################################
###   SMTP Mailer specification   ###
#####################################

R$+                     $@ $1 < @ $m >          add @domainname.com
## R$+                  $@ $1 < @ *LOCAL* >             add local qualification


But now I get this error

/etc/mail/sendmail.cf: line 1335: invalid rewrite line "R+                     @ 1 < @ m >          add @domainname.com" (tab expected)

0
Comment
Question by:wfaleiro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 34

Accepted Solution

by:
PsiCop earned 25 total points
ID: 17964801
Note that EE has a sendmail-specific TA --> http://www.experts-exchange.com/Networking/Email_Groupware/Sendmail/

Your first mistake is hacking sendmail.cf directly. You mention "submit.mc" on Linux, so evidently you know about the .mc macro configuration method. Why would you hack sendmail.cf directly? Use the appropriate FEATURE macros in sendmail.mc.
0
 
LVL 26

Assisted Solution

by:jar3817
jar3817 earned 25 total points
ID: 17964862
sendmail.cf is riddled with finicky whitespaces; sometimes a tab, sometimes a bunch of spaces. The error you get suggests you didn't use a tab where you were supposed to. Since no human should have to figure this out, you should do like psicop says and config sendmail using the sendmail.mc file, not the cf file.
0
 
LVL 1

Author Comment

by:wfaleiro
ID: 18277020
No solution obtained from the above posts. Kindly refund the points or split between posts.

Thanks,
--Walter
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question