Operating System - HP-UX
1833271 Members
3182 Online
110051 Solutions
New Discussion

Re: Need help on sendmail configuration

 
Ganesan R
Honored Contributor

Need help on sendmail configuration

Hi all,

I need to configure mail box for a user in which user can send outgoing mails. But incoming mails should be blocked. How do we do that?

Thanks in advance.
Best wishes,

Ganesh.
8 REPLIES 8
whiteknight
Honored Contributor

Re: Need help on sendmail configuration

Hi Ganesh,

To disable incoming mail and enable outgoing mail:

1. Set an export to disable the sendmail daemon on system startup:

SENDMAIL_SERVER=0 in /etc/rc.config.d/mailservs file

2. Set up a batch job to queue for messages that have been sent back
to the message queue by adding the following entry to the
cronjob.root file:

5 * * * * /usr/sbin/sendmail -q >/dev/null 2>&1



WK
p/s: please assign point
Problem never ends, you must know how to fix it
whiteknight
Honored Contributor

Re: Need help on sendmail configuration

Ganesh,


Solution can be found in ITRC technical knowledge base

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01024101-1



WK
Problem never ends, you must know how to fix it
Ganesan R
Honored Contributor

Re: Need help on sendmail configuration


Hi Whiteknight,

I could not access the link which you have specified above. Can you attach the content of the link as attachment?

For your info, I want to restrict the incoming mails only for a specific user not for all the users.

Thanks in advance.
Best wishes,

Ganesh.
Dennis Handly
Acclaimed Contributor

Re: Need help on sendmail configuration

>I could not access the link which you have specified above. Can you attach the content of the link as attachment?

He can not. This would violate the copyright (and be throwing away Mark Hurd's money :-).

You need a support contract to read it.
Dennis Handly
Acclaimed Contributor

Re: Need help on sendmail configuration

A follow up about my last message. Read Clay's reply about accessing the Knowledge Base:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1153232
Prasanth Vattoly
Frequent Advisor

Re: Need help on sendmail configuration

Hi ganesh.

I feel the send-mail configuration is complex through command line.
I used to configure sendmail with a tool " WEBMIN" , which make it easy. give an web interface server configuration.

The tool is free downloadable. hope that you can get it from net.


regards
Prasanth
prasanth.v.a
Tim Nelson
Honored Contributor

Re: Need help on sendmail configuration

Simply shut off the sendmail deamon as Whiteknight suggested.

To process sent mails that ended up in the queue for some reason add cron entry as suggested to process every 5, 10 or 15 minutes.

Aashique
Honored Contributor

Re: Need help on sendmail configuration

Hi,
To block your incoming mail just block your incoming pop3 port from /etc/services file.

then, /etc/mail/relay-domains you can block your local IP from there.also /etc/mail/access file you can reject the domain.

Thanks & Regards

A. Aashique