Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th August 2009, 00:20
maykel535 maykel535 is offline
Member
 
Join Date: May 2009
Posts: 33
Thanks: 5
Thanked 3 Times in 2 Posts
Default ERROR: Could not append message to INBOX.Sent

ERROR: Could not append message to INBOX.Sent.
Server responded: [ALERT] You exceeded your mail quota.
Solution: Remove unneccessary messages from your folder and start with
your Trash folder.

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/squirrelmail/functions/page_header.php:31) in /usr/share/squirrelmail/src/compose.php on line 498

Can I help me please? Thanks in advanced
Reply With Quote
Sponsored Links
  #2  
Old 27th August 2009, 10:00
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

This is probably the most "speak for itself" problems of all ..

Read the post you did again, and reply with what you THINK is going on .. after that i'll start giving pointers
Reply With Quote
  #3  
Old 27th August 2009, 10:19
maykel535 maykel535 is offline
Member
 
Join Date: May 2009
Posts: 33
Thanks: 5
Thanked 3 Times in 2 Posts
Default I have resolved my problem

I went:
nano /home/vmail/dominio.com/usuario/maildirsize
In the first line modify:


#10485760S this is the line, modify for:
90485760S
410 1
840 1
1873 1
847 1
959 1
4055 1
831 1

So It works 100%.
Reply With Quote
  #4  
Old 27th August 2009, 11:23
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

See how easy that was? ;-)
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
maykel535 (27th August 2009)
  #5  
Old 27th August 2009, 11:26
maykel535 maykel535 is offline
Member
 
Join Date: May 2009
Posts: 33
Thanks: 5
Thanked 3 Times in 2 Posts
Default About quota.sent

Thanks jeje. What rules iptables your recommended for server mail??
Reply With Quote
  #6  
Old 27th August 2009, 12:09
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Well, if it's purely a mailserver ..

You can close everything and open up:
ssh: just for you
smtp: world
pop: world
imap: world

Checkout this cool tutorial about iptables (i know it's boring to read stuff, but you'll actually learn from it ):

http://forums.pcper.com/showthread.php?t=432469
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
maykel535 (27th August 2009)
  #7  
Old 27th August 2009, 12:17
maykel535 maykel535 is offline
Member
 
Join Date: May 2009
Posts: 33
Thanks: 5
Thanked 3 Times in 2 Posts
Default About iptables

Thanks your response.
I will ready the link that you put.

I have script that might help me.

SCRIPT:

#!/bin/bash
##############USMAN AKRAM "FA05-BTN-005" (~*Lucky*~) BTN-6##############COMSATS INSTITUTE OF INFORMATION TECHNOLOGY - ABBOTTABAD####
echo -e "****************Welcome*************"
###############################IPTABLE SERVICES PROGRAM BEGINS HERE###############################
checkstatus()
{
opt_checkstatus=1
while [ $opt_checkstatus != 7 ]
do
clear
#echo -e "\nChoose the Option Bellow!!!\n
echo -e "\n\t*****Note: Save your Iptables before stop/Restart the iptables Services*****\n"
echo -e " 1. Save the iptables\n
2. Status of Iptables\n
3. Start iptables Services\n
4. Stop iptables Services\n
5. Restart iptable Services\n
6. Flush iptables (**Use Carefully_it will remove all the rules from iptables**)\n
7. Go back to Main Menu"
read opt_checkstatus
case $opt_checkstatus in
1) echo -e "************************************************* ******\n"
/etc/init.d/iptables save
echo -e "\n*********************************************** ********\n"
echo -e "Press Enter key to Continue..."
read temp;;
2) echo -e "************************************************* ******\n"
/etc/init.d/iptables status
echo -e "************************************************* ******"
echo -e "Press Enter key to Continue..."
read temp;;
3) echo -e "************************************************* ******\n"
/etc/init.d/iptables start
echo -e "************************************************* ******\n"
echo -e "Press Enter key to Continue..."
read temp;;

4) echo -e "************************************************* ******\n"
/etc/init.d/iptables stop
echo -e "************************************************* ******\n"
echo -e "Press Enter key to Continue..."
read temp;;

5) echo -e "************************************************* ******\n"
/etc/init.d/iptables restart
echo -e "************************************************* ******\n"
echo -e "Press Enter key to Continue..."
read temp;;
6) iptables -F
echo -e "************************************************* ******"
echo -e "All the Rules from the Iptables are Flushed!!!"
echo -e "************************************************* ******\n"
echo -e "Press Enter key to Continue..."
read temp;;
7) main;;
*) echo -e "Wrong Option Selected!!!"
esac
done
}
###############################BUILD FIREWALL PROGRAM BEGINS FROM HERE###############################
buildfirewall()
{
###############Getting the Chain############
echo -e "Using Which Chain of Filter Table?\n
1. INPUT
2. OUTPUT
3. Forward"
read opt_ch
case $opt_ch in
1) chain="INPUT" ;;
2) chain="OUTPUT" ;;
3) chain="FORWARD" ;;
*) echo -e "Wrong Option Selected!!!"
esac

#########Getting Source IP Address##########
#Label

echo -e "
1. Firewall using Single Source IP\n
2. Firewall using Source Subnet\n
3. Firewall using for All Source Networks\n"
read opt_ip

case $opt_ip in
1) echo -e "\nPlease Enter the IP Address of the Source"
read ip_source ;;
2) echo -e "\nPlease Enter the Source Subnet (e.g 192.168.10.0/24)"
read ip_source ;;
3) ip_source="0/0" ;;
#4) ip_source = "NULL" ;;
*) echo -e "Wrong Option Selected"
esac
#########Getting Destination IP Address##########
echo -e "
1. Firewall using Single Destination IP\n
2. Firewall using Destination Subnet\n
3. Firewall using for All Destination Networks\n"

read opt_ip
case $opt_ip in
1) echo -e "\nPlease Enter the IP Address of the Destination"
read ip_dest ;;
2) echo -e "\nPlease Enter the Destination Subnet (e.g 192.168.10.0/24)"
read ip_dest ;;
3) ip_dest="0/0" ;;
#4) ip_dest = "NULL" ;;
*) echo -e "Wrong Option Selected"
esac
###############Getting the Protocol#############
echo -e "
1. Block All Traffic of TCP
2. Block Specific TCP Service
3. Block Specific Port
4. Using no Protocol"
read proto_ch
case $proto_ch in
1) proto=TCP ;;
2) echo -e "Enter the TCP Service Name: (CAPITAL LETTERS!!!)"
read proto ;;
3) echo -e "Enter the Port Name: (CAPITAL LETTERS!!!)"
read proto ;;
4) proto="NULL" ;;
*) echo -e "Wrong option Selected!!!"
esac

#############What to do With Rule#############
echo -e "What to do with Rule?
1. Accept the Packet
2. Reject the Packet
3. Drop the Packet
4. Create Log"
read rule_ch
case $rule_ch in
1) rule="ACCEPT" ;;
2) rule="REJECT" ;;
3) rule="DROP" ;;
4) rule="LOG" ;;
esac
###################Generating the Rule####################
echo -e "\n\tPress Enter key to Generate the Complete Rule!!!"
read temp
echo -e "The Generated Rule is \n"
if [ $proto == "NULL" ]; then
echo -e "\niptables -A $chain -s $ip_source -d $ip_dest -j $rule\n"
gen=1
else
echo -e "\niptables -A $chain -s $ip_source -d $ip_dest -p $proto -j $rule\n"
gen=2
fi
echo -e "\n\tDo you want to Enter the Above rule to the IPTABLES? Yes=1 , No=2"
read yesno
if [ $yesno == 1 ] && [ $gen == 1 ]; then
iptables -A $chain -s $ip_source -d $ip_dest -j $rule
else if [ $yesno == 1 ] && [ $gen == 2 ]; then
iptables -A $chain -s $ip_source -d $ip_dest -p $proto -j $rule

else if [ $yesno == 2 ]; then

main
fi
fi
fi
}

main()
{
ROOT_UID=0
if [ $UID == $ROOT_UID ];
then
clear
opt_main=1
while [ $opt_main != 4 ]
do
echo -e "/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n"
#############Check Whether the iptables installed or not############
echo -e "\t*****Main Menu*****\n
1. Check Iptables Package\n
2. Iptables Services\n
3. Build Your Firewall with Iptables\n
4. Exit"
read opt_main
case $opt_main in
1) echo -e "******************************"
rpm -q iptables
echo -e "******************************" ;;
2) checkstatus ;;
3) buildfirewall ;;
4) exit 0 ;;
*) echo -e "Wrong option Selected!!!"
esac
done
else
echo -e "You Must be the ROOT to Perfom this Task!!!"
fi
}
main
exit 0

--------------------------------------

Would it service me?
Reply With Quote
  #8  
Old 27th August 2009, 13:17
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Well it looks like a sort of wrapper around the usage of the iptables command in *nix
So you could try and use it, it looks like it has the stuff in it you want, so why not give it a try.

Though the downside of using these wrappers/scripts is that you won't really learn from them. (unless you don't care and just want the damn thing firewalled, you should us this )
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
maykel535 (27th August 2009)
  #9  
Old 27th August 2009, 13:28
maykel535 maykel535 is offline
Member
 
Join Date: May 2009
Posts: 33
Thanks: 5
Thanked 3 Times in 2 Posts
Default Thanks

I will use the script but I will read the link. Thanks
Excuse me, how I can server of images backup the pcs with linux? For example: northon ghost with network but in linux...I have installed and configured drbl with clonezilla, Do you meet the script or programs differents?
Thanks for all. Excuse me for my english...
Reply With Quote
  #10  
Old 27th August 2009, 13:36
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
 
Default

I'm sorry you have to clarify yourself a bit more, because if have no clue what you just asked me
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
maykel535 (27th August 2009)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetchmail won't flush my account kameelperdza Installation/Configuration 10 22nd June 2009 18:05
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
Perfect SpamSnake - Emails Stuck in MailScanner Incomming queue teixeira HOWTO-Related Questions 2 4th December 2008 02:49
Dspam + postfix : dspam didn't tag header messages NothingHere Server Operation 1 31st October 2008 16:57
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04


All times are GMT +2. The time now is 15:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.