Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th January 2007, 13:25
denmaus denmaus is offline
Member
 
Join Date: May 2006
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Question Additional Security for postfix with Access Map

Can i use the access map function with ISP Config & Postfix like described on this page: http://www.postfix.org/access.5.html

in short:
create access map file
Quote:
postmap /etc/postfix/access
postmap -q "domain.ltd REJECT" /etc/postfix/access
rebuild the database
Quote:
postmap /etc/postfix/access
or can i configuire the same in ispconfig?
I do not found such a configuration in ispconfig.

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 30th January 2007, 16:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

You can use this with ISPConfig, I dont see any conflicts with the ISPConfig configuration.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 1st February 2007, 10:09
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 194
Thanks: 8
Thanked 15 Times in 7 Posts
Default Cleaning mailq of unwanted entries

My approch on an old Postfix server was to write 2x scripts, one were I have information on the top line of mailq line and the second to look for info anyware in the mailq
Code for /root/mail-clean called like this /root/mail-clean rejected: will look for rejected: in the queue and find the id and then delete the queue item.
Code:
#!/bin/bash
IFS=

mailq | (
HIT=0
HITSTR=$1
while read line
do
        if [ -z "$line" ]
        then
                #should be at end of current messAge
                #echo "line is empty"
                if [ "$HIT" = "1" ]
                then
                        HIT=0
                        echo Deleting $NUMBER
                        /usr/sbin/postsuper -d $NUMBER
                fi
        else
                #echo $line

                START=`echo $line | cut -c3-3`
                if [ "$START" = " " -o "$START" = "o" -o "$START" = "l" ]
                then
                        #echo line starts with spaces
                        if echo $line | grep $HITSTR
                        then
                                HIT=1
                        fi
                else
                        NUMBER=`echo $line | cut -c1-11`
                        #echo number is $NUMBER
                fi
        fi
done
)
The other script /root/mailclean-topline called this way /root/mailclean-topline MAILER-DAEMON will look at the mailq entries and as its on the same top line as the queue id, grab the id and delete the queue item.
Code:
#!/bin/bash
for i in `mailq | grep $1 | cut -c1-11`
do
#       find /var/spool/postfix -name $i -exec rm {} \;
        echo Deleting $i
        /usr/sbin/postsuper -d $i
done
Note: the character positions might change as the mailq application get changed.
I then schedule an cron job to do this cleaning nightly for a list of known "queue stucked mails"

Last edited by Morons; 1st February 2007 at 10:11. Reason: fixed an [code][/code] mishappening
Reply With Quote
  #4  
Old 10th February 2007, 00:42
denmaus denmaus is offline
Member
 
Join Date: May 2006
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default thanks

thank you morons i will try your script
Reply With Quote
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
How to delete SPAM in Mail Queue? denmaus Installation/Configuration 3 1st February 2007 10:17
user access to /etc/www/ & security kostas Server Operation 1 16th January 2007 16:18
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 19:26
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 18:02
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 12:47


All times are GMT +2. The time now is 08:03.


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