how to forward mail of one user to other in sendmail server ?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
how to forward mail of one user to other in sendmail server ?
hi everybody,
i have configured sendmail server in my lan and it is working fine for me.but there is one little problem for me.
i want mails send sunita should be received by vinita.sunita and vinita both are normal users on same pc.
Maybe it's because of the single quote instead of the backtick in front of smtp.abc.com in the SMART_HOST definitio
Better have a look at line 39 of /etc/mail/sendmail.cf
I have merged your two duplicate threads, and removed any posts that were made redundant by the merge. Please take care to post your question in only one location in the future.
ya problem is at SMART_HOST line.beacause when i comment this line out the error disappeared.but what is the problem?i have not found yet.i have used front tick at front of SMART_HOST also but still same error
Last edited by piyusharora420; 01-05-2011 at 11:09 PM.
Reason: full details were not given before
thanx for your reply.i am trying to make a system (without internet connection) in my lan as a sendmail server.will it work?i just want to use it in lan.i have rhel5,centos,in my lan.please guide me i have never used sendmail server
actually i was trying to solve a rhce question.so i tried alot.ok it is not needed in lan but can't we use it in lan?is it showing error because i am using it in lan?
thanx for ur reply, but i have already tried what have you said.now i elaborate my problem.
i have three pc's in my lan- 1.centos 2.rhel 3.rhel and i want to make centos as mail server.should i need to configure client side for SMART_HOST only?means mails will be forwarded to my mail server.please guide me with full explanation.i know it will be time consuming for you.please help me out
Look I cannot answer the question in a way suited for rhce, cause I don't know what they want and I also can't do your homework.
I can only tell you that in theory you can setup sendmail on each client and configure it to use the centos box as a smarthost, but it's superfluous, as you will have as many sendmail servers as your clients. In this case you have to configure applications running on clients to use localhost as smtp server.
In practice you configure sendmail only on centos (and you add a smarthost to it, only if it's needed to send mail to the internet). In this case applications running on clients should be configured to use the centos box as smtp server.
means only clients are needed to configured for smtp or i can say for SMART_HOST option?
suppose my server name is server.example.com then it should be
suppose my server name is server.example.com then it should be
Quote:
define(`SMART_HOST',`smtp.server.example.com')dnl
If your server name is server.example.com, you should use this name (without the smtp in front). No user accounts or anything else.
Code:
define(`SMART_HOST',`server.example.com')dnl
If you mean that the client sendmail needs to authenticate to the sendmail acting as a smarthost, then I suggest you to read this howto.
It describes, how to setup sendmail with smtp auth either as a server as well as a client to another smtp server (smarthost)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.