how to allow my all local network to sendmail

Discussion regarding the installation and configuration of Linux distributions.
sonn33
Naik
Posts: 57
Joined: Wed Aug 25, 2004 3:20 pm
Location: Philippines
Contact:

how to allow my all local network to sendmail

Postby sonn33 » Mon Oct 27, 2008 12:14 pm

Hi Guys,

Anyone can tell me on how to i allow all my local network to send i have set-up sendmail and my prob i need to vi my access just to add one by one every ip add of my network.

Thank you guys!

Sonn
sonn33

shakirz1
Battalion Quarter Master Havaldaar
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Location: Karachi
Contact:

Postby shakirz1 » Mon Oct 27, 2008 3:46 pm

for example you are using following IP Pool 192.168.0.0/24 then your /etc/mail/access will be like this.

192.168.0 RELAY

sonn33
Naik
Posts: 57
Joined: Wed Aug 25, 2004 3:20 pm
Location: Philippines
Contact:

Postby sonn33 » Tue Oct 28, 2008 6:47 am

Thank for the help IDOL.

and my question again how to i edit may cron i have alot of queue mails my worry is to become full my HD

grew WorkList for /var/spool/mqueue to 14000

i need to automate this to delete.

Thank you.
sonn
sonn33

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Postby LinuxFreaK » Tue Oct 28, 2008 8:57 am

Dear sonn33,
Salam,

shakirz1 wrote:for example you are using following IP Pool 192.168.0.0/24 then your /etc/mail/access will be like this.

192.168.0 RELAY


Do not forget to make your access database by using make command.

# make -C /etc/mail

Best Regards.
Farrukh Ahmed

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Postby LinuxFreaK » Tue Oct 28, 2008 9:00 am

Dear sonn33,
Salam,

sonn33 wrote:and my question again how to i edit may cron i have alot of queue mails my worry is to become full my HD

grew WorkList for /var/spool/mqueue to 14000

i need to automate this to delete.


Create script which will check files creation time by using find command and remove them.

Below command will delete any file which was created 3 hours ago.

find /var/spool/mqueue -type f -amin +180 -print0 | xargs -0 rm -f

Best Regards.
Farrukh Ahmed

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Wed Oct 29, 2008 5:36 pm

under normal circumstances, deleting files 3 hours old is a bad idea. what kind of email is going through the server? is a computer on your network infected, and sending out spam?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

sonn33
Naik
Posts: 57
Joined: Wed Aug 25, 2004 3:20 pm
Location: Philippines
Contact:

Postby sonn33 » Sat Nov 01, 2008 8:20 pm

actually our marketing are sending large of mail 40000 emails send to our customer every other week that is why i have a large of mailq in may sendmail. it there any other work around to eliminate old mailq?
sonn33

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Mon Nov 03, 2008 11:02 am

i m using postfix for my company for relaying server and daily output emails are about 25000+ and i have never seen queues going above 200 Msgs. I think you should try postfix for that huge emails.
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Postby LinuxFreaK » Tue Nov 04, 2008 9:05 am

Dear lambda,
Salam,

lambda wrote:under normal circumstances, deleting files 3 hours old is a bad idea. what kind of email is going through the server? is a computer on your network infected, and sending out spam?


If he is smart then he can adjust it by him self. We are not here to spoon feed every thing.

Best Regards.
Farrukh Ahmed

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Tue Nov 04, 2008 4:22 pm

Dear farrukh don't forget to pamper first :lol: :P
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Postby LinuxFreaK » Thu Nov 06, 2008 5:22 am

Dear x2oxen,
Salam,

x2oxen wrote:Dear farrukh don't forget to pamper first :lol: :P


Sorry, I do not get you what do you mean by that ?

Best Regards.
Farrukh Ahmed


Return to “Installation”

Who is online

Users browsing this forum: No registered users and 2 guests