Solved

Sendmail masquerading on Solaris 10

Posted on 2006-11-17
5
562 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now