Solved

Sendmail masquerading on Solaris 10

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Port forwarding 14 149
Getting locked out and can't access Cisco via the web 18 62
policy routing to fw2 18 66
Network connections wi-fi configuration issue 6 30
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

816 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

10 Experts available now in Live!

Get 1:1 Help Now