how to allow my all local network to sendmail

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

how to allow my all local network to sendmail

Post by sonn33 »

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:

Post by shakirz1 »

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:

Post by sonn33 »

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:

Post by LinuxFreaK »

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:

Post by LinuxFreaK »

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:

Post by lambda »

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:

Post by sonn33 »

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:

Post by x2oxen »

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:

Post by LinuxFreaK »

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:

Post by x2oxen »

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:

Post by LinuxFreaK »

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
Post Reply