Re: Postfix randomizing outgoing IP using

2013-11-29 Thread M.Atıf CEYLAN

On 29-11-2013 01:30, Gregory Nowak wrote:

The main.cf portion you posted didn't have a

mydestination =

line. If it in fact doesn't, then you probably want to add one as in:

mydestination = example.com, host.example.com, localhost

and do a postfix reload. Now, postfix won't do mx lookups when you
send mail to example.com.


Greg
I have many of domains. However I did test with mydestination = 
atifceylan.com localhost  parameter.
But I got Recipient address rejected: User unknown in local recipient 
table error message.


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/52985554.7030...@atifceylan.com



Re: Postfix randomizing outgoing IP using [SOLVED]

2013-11-29 Thread M.Atıf CEYLAN
I wrote the perl script again. The new script contains my own ip address 
range check. if the IP of the domain is in my IP range it prints 200 
dovecot: message.


#!/usr/bin/perl -w
# author: Hari Hendaryanto hari.h -at- csmcom.com

#use strict;
use warnings;
use Sys::Syslog qw(:DEFAULT setlogsock);
use Net::DNS;
use Net::CIDR;
use Net::CIDR ':all';
my $dns = new Net::DNS::Resolver;
#
# our transports array, we will define this in master.cf as transport 
services

#
our @cidr_list;
@cidr_list=Net::CIDR::cidradd(1.1.1.1/24);
@cidr_list=Net::CIDR::cidradd(2.2.2.2/24, @cidr_list);

our @array = (
'rotate1:',
'rotate2:',
'rotate3:'
);

#
# Initalize and open syslog.
#
openlog('postfix/randomizer','pid','mail');

#
# Autoflush standard output.
#
select STDOUT; $|++;
while () {
chomp;
# randomizing transports array
my $random_smtp = int(rand(scalar(@array)));
if (/^get\s(.+)$/i) {
my $local_domain = $1;
$local_domain =~ s/.*\@//i;
my $prefix = 'mx1.';
my $mx = $dns-query( $prefix.$local_domain, 'A' );
my $is_local = 0;
foreach my $rr ($mx-answer) { #maybe it returns multiple 
results

if(Net::CIDR::cidrlookup($rr-address, @cidr_list)==1){
$is_local = 1;
}

if ($is_local == 1){
print 200 dovecot:\n;
syslog(info,Using: %s Transport Service, $local_domain);
} else {
print 200 $array[$random_smtp]\n;
syslog(info,Using: %s Transport Service, 
$random_smtp);

}
next;
}

print 200 smtp:;
}


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/5298844e@atifceylan.com



Postfix randomizing outgoing IP using

2013-11-28 Thread M.Atıf CEYLAN

Hi,
I found the URL 
http://www.kutukupret.com/2010/12/06/postfix-randomizing-outgoing-ip-using-tcp_table-and-perl/ 
about multiple outgoing IP using.

I use postfix with dovecot LDA. My postfix main.cf conf.
...
transport_maps = tcp:[127.0.0.1]:2527
127.0.0.1:2527_time_limit = 3600s
..
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = dovecot

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
.

master.cf
...
rotate1  unix -   -   n   -   -   smtp
  -o syslog_name=postfix-rotate1
  -o smtp_helo_name=smtp1.mydomain.com
  -o smtp_bind_address=10.0.0.3

rotate2  unix -   -   n   -   -   smtp
  -o syslog_name=postfix-rotate2
  -o smtp_helo_name=smtp2.mydomain.com
  -o smtp_bind_address=10.0.0.4

rotate3  unix -   -   n   -   -   smtp
  -o syslog_name=postfix-rotate3
  -o smtp_helo_name=smtp3.mydomain.com
  -o smtp_bind_address=10.0.0.5
...

Everything is great but when I want to sending an email to a local 
domain, smtp server looks at the mx record of the domain. Can I use 
local transport and transport_maps together? Or is there a way to 
sending to local domains?


Thanks,

M.Atıf CEYLAN
Yurdum Yazılım


Re: After Sieve plugin errors

2013-08-13 Thread M.Atıf CEYLAN

On 08/07/2013 04:48 PM, emmanuel segura wrote:

This workaround is not for you, man mkfs.ocfs2 and look the option

  -T filesystem-type
  Specify how the filesystem is going to be used, so that 
mkfs.ocfs2 can chose optimal filesystem parameters for that use.  The  
supported  filesystem  types

  are:

   mail   Appropriate for file systems that will host 
lots of small files.


   datafiles
  Appropriate for file systems that will host 
a relatively small number of very large files.


   vmstore
  Appropriate for file systems that will host 
Virtual machine images.




2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com 
mailto:meh...@atifceylan.com


Count: 243   Next Free Rec: 243
 ##   TotalUsed Free Block#
04096 4096 0 7878657
14096 4096 0 11997697
24096 4095 1 12126721
34096 4095 1 12158977
44096 4094 2 933889
54096 tel:5%C2%A0%C2%A0%C2%A0%204096 4096
0326657
64096 4096 0 327681
74096 4096 0 12417025
84096 4094 2 329729
94096 4091 5 1224193
10   4096 4090 6 1288705
11   4096 4089 7 1320961
12   4096 4096 0 1385473
13   4096 4096 0 1449985

Perhaps, I must increase the cluster size of ocfs2 :(
Is the discontig-bg a workaround for me? If it's a workaround I'll
make creation new volumes with big block size and move the data to
there.

What is your suggestion to me for mkfs.ocfs2 params? Journal size,
cluster size etc.?
(I have 6 volumes and each size is 140GB)

I have tried with the -C 32K parameter. But the result was bad than 
before. http://www.novell.com/support/kb/doc.php?id=7008696 it says :  
In conjunction with fragmentation, the filesystem may run out of a 
contiguous block to alloc for extent_alloc blocks leading to out of 
space errors. This is an OCFS2 limitation, and the problem happens 
*only when creating large files on file system with small Cluster 
Size*. I have many small files (millions of files) on all volumes.


When I try with (http://oss.oracle.com/~seeda/misc/stat_sysdir.sh) this 
script on old volumes I don't see any space problem.

some results of output of the script.

//global_bitmap
   ..
Bitmap Total: 44564302   Used: 27804345   Free: 16759957
Clusters per Group: 32256   Bits per Cluster: 1
Count: 243   Next Free Rec: 243
##   TotalUsed Free Block#
0193536   130058   6347815676416
1193536   120736   7280023546880
2193536   126088   6744815740928
3193536   130184   6335215773184
4193536   120517   7301915805440
5193536   115267   7826931514112
6193536   120907   7262915869952
..
Group Chain: 0   Parent Inode: 11  Generation: 3256184013
CRC32:    ECC: 
##   Block#TotalUsed Free Contig Size
015676416  322561509817158503 4032
17838208   3225631432824  511 4032
23 322563225600 4032
323514624  322561787414382446 4032
431352832  322561544016816507 4032
539191040  322561795814298479 4032
...
 //global_inode_alloc
Sub Alloc Slot: Global   Sub Alloc Bit: 4
Bitmap Total: 269   Used: 32   Free: 237
Clusters per Group: 269   Bits per Cluster: 1
Count: 243   Next Free Rec: 1
##   TotalUsed Free Block#
0269  32   237  4

Group Chain: 0   Parent Inode: 8  Generation: 3256184013
CRC32:    ECC: 
##   Block#TotalUsed Free Contig Size
04 269  32   237  237 4032


However I want to try with --fs-features=discontig-bg but I use 
squeeze with 2.6.32 kernel. So this feature is not supported by the 
running kernel (or I couldn't run it).


M.Atıf CEYLAN
Yurdum Yazılım


After Sieve plugin errors

2013-08-07 Thread M.Atıf CEYLAN

Hi all,
I have 2 Dovecot servers (as clustered on ocfs2). I sometimes get some 
errors since I installed the sieve plugin.
Sometimes though they are not actually quota exceeded, I get Quota 
exceeded error messages.

There is no any disk or file system error/warning.
There is no a log record that contains such errors before the sieve 
plugin was installed.


2013-08-07 12:56:43 lda(i...@abc.com): Error: sieve: 
msgid=004301ce9354$3fa5a7c0$bef0f740$@: failed to store into 
mailbox 'INBOX': Not enough disk space


2013-08-07 12:56:43 lda(i...@abc.com): Error: sieve: failed to open 
logfile (LOGGING TO STDERR): open(/path/abc.com/info/.dovecot.sieve.log) 
failed: No space left on device


2013-08-07 12:56:43 lda(i...@abc.com): Error: sieve: script 
/path/abc.com/info/.dovecot.sieve failed with unsuccessful implicit keep 
(user logfile /path/abc.com/info/.dovecot.sieve.log may reveal 
additional details)


2013-08-07 13:19:12 lda(i...@xyz.com): Error: sieve: 
msgid=15512193.1.1375870722293@: failed to store into mailbox 
'INBOX': Not enough disk space


2013-08-07 13:19:12 lda(i...@xyz.com): Error: sieve: script 
/path/xyz.com/info/.dovecot.sieve failed with unsuccessful implicit keep 
(user logfile /path/xyz.com/info/.dovecot.sieve.log may reveal 
additional details)


--
M.Atıf CEYLAN
Yurdum Yazılım


Re: After Sieve plugin errors

2013-08-07 Thread M.Atıf CEYLAN

On 08/07/2013 02:55 PM, Jochen Spieker wrote:

M.Atıf CEYLAN:

I have 2 Dovecot servers (as clustered on ocfs2). I sometimes get
some errors since I installed the sieve plugin.
Sometimes though they are not actually quota exceeded, I get Quota
exceeded error messages.
There is no any disk or file system error/warning.

Where do you expect such a warning to show up? Did you check all
relevant filesystems with df -k and df -i?

J.
Inodes are 63% used (max value of results). These errors shown in 
dovecot logs.


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/52023a13.9020...@atifceylan.com



Re: After Sieve plugin errors

2013-08-07 Thread M.Atıf CEYLAN

lot of free space

On 08/07/2013 03:41 PM, emmanuel segura wrote:

df -k?


2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com 
mailto:meh...@atifceylan.com


On 08/07/2013 02:55 PM, Jochen Spieker wrote:

M.Atıf CEYLAN:

I have 2 Dovecot servers (as clustered on ocfs2). I
sometimes get
some errors since I installed the sieve plugin.
Sometimes though they are not actually quota exceeded, I
get Quota
exceeded error messages.
There is no any disk or file system error/warning.

Where do you expect such a warning to show up? Did you check all
relevant filesystems with df -k and df -i?

J.

Inodes are 63% used (max value of results). These errors shown in
dovecot logs.


-- 
M.Atıf CEYLAN

Yurdum Yazılım


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

mailto:debian-user-requ...@lists.debian.org with a subject of
unsubscribe. Trouble? Contact listmas...@lists.debian.org
mailto:listmas...@lists.debian.org
Archive: http://lists.debian.org/52023a13.9020...@atifceylan.com




--
esta es mi vida e me la vivo hasta que dios quiera



--
M.Atıf CEYLAN
Yurdum Yazılım


Re: After Sieve plugin errors

2013-08-07 Thread M.Atıf CEYLAN

I sometimes get error, not always.

On 08/07/2013 03:41 PM, emmanuel segura wrote:

df -k?


2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com 
mailto:meh...@atifceylan.com


On 08/07/2013 02:55 PM, Jochen Spieker wrote:

M.Atıf CEYLAN:

I have 2 Dovecot servers (as clustered on ocfs2). I
sometimes get
some errors since I installed the sieve plugin.
Sometimes though they are not actually quota exceeded, I
get Quota
exceeded error messages.
There is no any disk or file system error/warning.

Where do you expect such a warning to show up? Did you check all
relevant filesystems with df -k and df -i?

J.

Inodes are 63% used (max value of results). These errors shown in
dovecot logs.


-- 
M.Atıf CEYLAN

Yurdum Yazılım


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

mailto:debian-user-requ...@lists.debian.org with a subject of
unsubscribe. Trouble? Contact listmas...@lists.debian.org
mailto:listmas...@lists.debian.org
Archive: http://lists.debian.org/52023a13.9020...@atifceylan.com




--
esta es mi vida e me la vivo hasta que dios quiera



--
M.Atıf CEYLAN
Yurdum Yazılım


Re: After Sieve plugin errors

2013-08-07 Thread M.Atıf CEYLAN

Count: 243   Next Free Rec: 243
 ##   TotalUsed Free Block#
04096 4096 07878657
14096 4096 011997697
24096 4095 112126721
34096 4095 112158977
44096 4094 2933889
54096 4096 0326657
64096 4096 0327681
74096 4096 012417025
84096 4094 2329729
94096 4091 51224193
10   4096 4090 61288705
11   4096 4089 71320961
12   4096 4096 01385473
13   4096 4096 01449985

Perhaps, I must increase the cluster size of ocfs2 :(
Is the discontig-bg a workaround for me? If it's a workaround I'll make 
creation new volumes with big block size and move the data to there.


What is your suggestion to me for mkfs.ocfs2 params? Journal size, 
cluster size etc.?

(I have 6 volumes and each size is 140GB)

On 08/07/2013 03:49 PM, emmanuel segura wrote:

Ok

Try with this:

debugfs.ocfs2 -n -R stat //inode_alloc:

Verify that the value  Next  Free  Rec  is at 0  and the value  of  either  0 
 Free


This indicates that  there is no 'more'  contiguous space  available  to the 
allocation  of new  blocks even if  there  'space  available on the system

The solution to the problem of the allocation of blocks and 'to 
activate FEATURES discontig-bg that allows you to allocate 
non-contiguous spaces.


The FEATURES you enable 'in this way

tunefs.ocfs2 --fs-features=discontig-bg






2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com 
mailto:meh...@atifceylan.com


lot of free space


On 08/07/2013 03:41 PM, emmanuel segura wrote:

df -k?


2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com
mailto:meh...@atifceylan.com

On 08/07/2013 02:55 PM, Jochen Spieker wrote:

M.Atıf CEYLAN:

I have 2 Dovecot servers (as clustered on ocfs2). I
sometimes get
some errors since I installed the sieve plugin.
Sometimes though they are not actually quota
exceeded, I get Quota
exceeded error messages.
There is no any disk or file system error/warning.

Where do you expect such a warning to show up? Did you
check all
relevant filesystems with df -k and df -i?

J.

Inodes are 63% used (max value of results). These errors
shown in dovecot logs.


-- 
M.Atıf CEYLAN

Yurdum Yazılım


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

mailto:debian-user-requ...@lists.debian.org with a subject
of unsubscribe. Trouble? Contact
listmas...@lists.debian.org mailto:listmas...@lists.debian.org
Archive: http://lists.debian.org/52023a13.9020...@atifceylan.com




-- 
esta es mi vida e me la vivo hasta que dios quiera



-- 
M.Atıf CEYLAN

Yurdum Yazılım




--
esta es mi vida e me la vivo hasta que dios quiera



--
M.Atıf CEYLAN
Yurdum Yazılım


Re: After Sieve plugin errors

2013-08-07 Thread M.Atıf CEYLAN

Thanks for answers.
I'll try with some parameters.

On 08/07/2013 04:48 PM, emmanuel segura wrote:

This workaround is not for you, man mkfs.ocfs2 and look the option

  -T filesystem-type
  Specify how the filesystem is going to be used, so that 
mkfs.ocfs2 can chose optimal filesystem parameters for that use.  The  
supported  filesystem  types

  are:

   mail   Appropriate for file systems that will host 
lots of small files.


   datafiles
  Appropriate for file systems that will host 
a relatively small number of very large files.


   vmstore
  Appropriate for file systems that will host 
Virtual machine images.




2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com 
mailto:meh...@atifceylan.com


Count: 243   Next Free Rec: 243
 ##   TotalUsed Free Block#
04096 4096 0 7878657
14096 4096 0 11997697
24096 4095 1 12126721
34096 4095 1 12158977
44096 4094 2 933889
54096 tel:5%C2%A0%C2%A0%C2%A0%204096 4096
0326657
64096 4096 0 327681
74096 4096 0 12417025
84096 4094 2 329729
94096 4091 5 1224193
10   4096 4090 6 1288705
11   4096 4089 7 1320961
12   4096 4096 0 1385473
13   4096 4096 0 1449985

Perhaps, I must increase the cluster size of ocfs2 :(
Is the discontig-bg a workaround for me? If it's a workaround I'll
make creation new volumes with big block size and move the data to
there.

What is your suggestion to me for mkfs.ocfs2 params? Journal size,
cluster size etc.?
(I have 6 volumes and each size is 140GB)


On 08/07/2013 03:49 PM, emmanuel segura wrote:

Ok

Try with this:

debugfs.ocfs2 -n -R stat //inode_alloc:

Verify that the value  Next  Free  Rec  is at 0  and the value  of  
either  0  Free


This indicates that  there is no 'more'  contiguous space  available  to 
the allocation  of new  blocks even if  there  'space  available on the system

The solution to the problem of the allocation of blocks and 'to
activate FEATURES discontig-bg that allows you to allocate
non-contiguous spaces.

The FEATURES you enable 'in this way

tunefs.ocfs2 --fs-features=discontig-bg






2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com
mailto:meh...@atifceylan.com

lot of free space


On 08/07/2013 03:41 PM, emmanuel segura wrote:

df -k?


2013/8/7 M.Atıf CEYLAN meh...@atifceylan.com
mailto:meh...@atifceylan.com

On 08/07/2013 02:55 PM, Jochen Spieker wrote:

M.Atıf CEYLAN:

I have 2 Dovecot servers (as clustered on
ocfs2). I sometimes get
some errors since I installed the sieve plugin.
Sometimes though they are not actually quota
exceeded, I get Quota
exceeded error messages.
There is no any disk or file system error/warning.

Where do you expect such a warning to show up? Did
you check all
relevant filesystems with df -k and df -i?

J.

Inodes are 63% used (max value of results). These errors
shown in dovecot logs.


-- 
M.Atıf CEYLAN

Yurdum Yazılım


-- 
To UNSUBSCRIBE, email to

debian-user-requ...@lists.debian.org
mailto:debian-user-requ...@lists.debian.org with a
subject of unsubscribe. Trouble? Contact
listmas...@lists.debian.org
mailto:listmas...@lists.debian.org
Archive:
http://lists.debian.org/52023a13.9020...@atifceylan.com




-- 
esta es mi vida e me la vivo hasta que dios quiera



-- 
M.Atıf CEYLAN

Yurdum Yazılım




-- 
esta es mi vida e me la vivo hasta que dios quiera



-- 
M.Atıf CEYLAN

Yurdum Yazılım




--
esta es mi vida e me la vivo hasta que dios quiera



--
M.Atıf CEYLAN
Yurdum Yazılım


Re: Moved MAC addresses

2013-07-25 Thread M.Atıf CEYLAN

On 07/25/2013 03:14 AM, Joe Pfeiffer wrote:

You haven't said a lot about your topology; are both interfaces visible
to the firewall through whatever series of switches you might have?

Yes

Actually, that pretty much has to be the case, otherwise your firewall
couldn't see both MAC addresses.

The both subnets are defined on the fw.


I'll hazard a guess that you're seeing an artifact of the fact that
Linux assigns an IP address to the host, not the interface (in spite of
what ifconfig says), so if a packet comes to 10.10.10.2 then either
interface will happily respond to it.  See:

https://www.ibm.com/developerworks/community/blogs/tclaret/entry/linux_considers_an_ip_address_as_belonging_to_a_host_rather_than_an_interface?lang=en

I do find myself curious about just how your network is wired up...

Actually,  I have two hardware and one of them is two-in-one card. I did 
down the one of them and I'll monitor a bit time.


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51f0c266.8000...@atifceylan.com



Re: Moved MAC addresses

2013-07-25 Thread M.Atıf CEYLAN

On 07/25/2013 06:56 PM, Joe Pfeiffer wrote:

M.Atıf CEYLAN meh...@atifceylan.com writes:


On 07/25/2013 03:14 AM, Joe Pfeiffer wrote:

You haven't said a lot about your topology; are both interfaces visible
to the firewall through whatever series of switches you might have?

Yes

Actually, that pretty much has to be the case, otherwise your firewall
couldn't see both MAC addresses.

The both subnets are defined on the fw.

I guess I'm trying to think of a topology in which both cards are
visible to the firewall in which you're better off than just having a
single card.



I did bonding and the problem was solved :)

--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51f1512f.2030...@atifceylan.com



Moved MAC addresses

2013-07-24 Thread M.Atıf CEYLAN

Hi,
I have two debian servers. They have two interfaces on each server.
For example,
server1:
eth0  e8:b7:48:7b:35:f6 10.10.10.2
eth1 is e8:b7:48:7b:35:f7   172.16.1.2

There is a pfsense firewall on frontend. PF syslogs contain below lines;

kernel: arp: *10.10.10.2* moved from e8:b7:48:7b:35:f6 on em1
kernel: arp: *10.10.10.2* moved from e8:b7:48:7b:35:f7 on em1

I look at ifconfig output on my debian servers but don't see any ip 
conflict or there is any same ip address on the network.

Also changed mac addresses are on the same machine.

regards,
--
M.Atıf CEYLAN
Yurdum Yazılım


Re: Dovecot sieve plugin global rules

2013-07-04 Thread M.Atıf CEYLAN

On 07/04/2013 03:39 PM, Darac Marjal wrote:

According tohttp://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration,
set sieve_user_log (it'll be ~/.dovecot.sieve.log by default).
I know this but  sieve_user_log is user log path. I want to logging 
everything for the global rule (info, warning and errors). My global 
rule not working but I don't know why not working it is.


--
M.Atıf CEYLAN
Yurdum Yazılım


Re: Dovecot sieve plugin global rules

2013-07-01 Thread M.Atıf CEYLAN

On 07/01/2013 02:28 PM, staticsafe wrote:

On Sun, Jun 30, 2013 at 11:36:29PM +0300, M.Atıf CEYLAN wrote:

  Hi all,
I use Dovecot 2.1.7 on debian squeeze with Sieve plugin. Sieve rules
are working nicely if I use the rules in user directories. But if I
want to use global rule it's not working. My configuration is below,

/etc/dovecot/conf.d/90-sieve.conf :
  plugin {
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
   sieve_global_dir = /etc/dovecot/sieve/
  }

/etc/dovecot/sieve/dovecot.sieve :

require [fileinto];
# rule:[test]
if header :contains From abc.com
{
 fileinto INBOX.Junk;
}

This rule is working in the user directory.

Regards,

--
M.Atıf CEYLAN
Yurdum Yazılım


Your configuration is wrong.
sieve_global_dir =

 Directory for :global include scripts for the include extension. The
 Sieve interpreter only recognizes files that end with a .sieve
 extension, so the include extension expects a file called name.sieve
 to exist in the sieve_global_dir directory for the following
 example:

You want:
sieve_before =

 Path to a script file or a directory containing script files that
 need to be executed before the user's script. If the path points to
 a directory, all the Sieve scripts contained therein (with the
 proper .sieve extension) are executed. The order of execution is
 determined by the file names, using a normal 8bit per-character
 comparison.

Source - http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration

Thanks for the answer.
I tried some different scenarios. But I couldn't run the script. I have 
commented sieve_global_dir parameter.


My new configuration is below :

plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_before = /etc/dovecot/sieve/spam.sieve

/etc/dovecot/sieve/spam.sieve (I have compiled manually by sievec) :

   require fileinto;
   if header :contains X-Spam-Flag [YES] {
 fileinto Junk;
 stop;
   }

--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51d194ae.8030...@atifceylan.com



Dovecot sieve plugin global rules

2013-06-30 Thread M.Atıf CEYLAN

 Hi all,
I use Dovecot 2.1.7 on debian squeeze with Sieve plugin. Sieve rules are 
working nicely if I use the rules in user directories. But if I want to 
use global rule it's not working. My configuration is below,


/etc/dovecot/conf.d/90-sieve.conf :
 plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_global_dir = /etc/dovecot/sieve/
 }

/etc/dovecot/sieve/dovecot.sieve :

require [fileinto];
# rule:[test]
if header :contains From abc.com
{
fileinto INBOX.Junk;
}

This rule is working in the user directory.

Regards,

--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51d096cd.4000...@atifceylan.com



Re: apache dirs

2013-06-14 Thread M.Atıf CEYLAN
If you want to use apache with each host owner you must use it with 
fastcgi or fcgid module.

for more info http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

On 06/14/2013 12:50 PM, Pol Hallen wrote:

Hi all :-)

Is it a problem keep owner of users about www dir reads of apache?

i.e.

/home/site1/www

ls -l www

index.html

site1:site1 index.html

I've several virtual host, with ftp users can access to own dir
/home/site1/www and update files

virtual hosts read files /home/site1/www

thanks for help!

Pol





--
M.Atıf CEYLAN
Yurdum Yazılım


gnome-control-center doesn't start

2013-06-09 Thread M.Atıf CEYLAN

Hi all,
I have a problem with gnome-control-center. When I start it I get the 
Segmentation fault error.

dbg output is below. Is that a bug?

(gdb) run
Starting program: /usr/bin/gnome-control-center
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
[New Thread 0x7fffd83c3700 (LWP 7844)]
[New Thread 0x7fffd7bc2700 (LWP 7845)]
[New Thread 0x7fffd73c1700 (LWP 7846)]
[New Thread 0x7fffd6bc0700 (LWP 7847)]
[Thread 0x7fffd7bc2700 (LWP 7845) exited]
[Thread 0x7fffd83c3700 (LWP 7844) exited]
[Thread 0x7fffd6bc0700 (LWP 7847) exited]
[Thread 0x7fffd73c1700 (LWP 7846) exited]

Program received signal SIGSEGV, Segmentation fault.
0x758f9566 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) backtrace full
#0  0x758f9566 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x7fffdfde5b0b in ?? () from /usr/lib/x86_64-linux-gnu/libGL.so.1
No symbol table info available.
#2  0x7fffda9a4845 in ?? () from /usr/lib/x86_64-linux-gnu/libcogl.so.9
No symbol table info available.
#3  0x7fffda9a29d2 in ?? () from /usr/lib/x86_64-linux-gnu/libcogl.so.9
No symbol table info available.
#4  0x7fffda97e838 in cogl_context_new () from 
/usr/lib/x86_64-linux-gnu/libcogl.so.9

No symbol table info available.
#5  0x7fffdae57333 in ?? () from 
/usr/lib/x86_64-linux-gnu/libclutter-1.0.so.0

No symbol table info available.
#6  0x7fffdae6e2b3 in ?? () from 
/usr/lib/x86_64-linux-gnu/libclutter-1.0.so.0

No symbol table info available.
#7  0x7fffdae79cda in ?? () from 
/usr/lib/x86_64-linux-gnu/libclutter-1.0.so.0

No symbol table info available.
#8  0x7fffdae79f0b in ?? () from 
/usr/lib/x86_64-linux-gnu/libclutter-1.0.so.0

No symbol table info available.
#9  0x761065d7 in g_option_context_parse () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0

No symbol table info available.
#10 0x7fffdae7a1d2 in clutter_init () from 
/usr/lib/x86_64-linux-gnu/libclutter-1.0.so.0

No symbol table info available.
#11 0x7fffdb33be34 in cheese_gtk_init () from 
/usr/lib/x86_64-linux-gnu/libcheese-gtk.so.21

No symbol table info available.
#12 0x7fffdb560bc3 in g_io_module_load () from 
/usr/lib/control-center-1/panels/libuser-accounts.so

No symbol table info available.
#13 0x766576a6 in ?? () from 
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0

No symbol table info available.
#14 0x763dda41 in g_type_module_use () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0

No symbol table info available.
#15 0x76657a84 in g_io_modules_load_all_in_directory_with_scope 
() from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51b464d8.5050...@atifceylan.com



Re: Dovecot IMAP

2013-06-07 Thread M.Atıf CEYLAN

On 06/06/2013 11:59 PM, Alex Dubinin wrote:

04.06.2013 18:15, Alex Dubinin пишет:

So work all mail clients that I tried! With other servers work fine. I
checked a few other servers. I think, this problem in namespaces. You
can try without thunderbird using telnet or openssl. My result: 04
LIST  * * LIST (\HasChildren) . INBOX * LIST (\HasNoChildren)
. INBOX.Trash But must be: 04 LIST  * * LIST (\HasNoChildren)
. INBOX * LIST (\HasNoChildren) . Trash The root folder INBOX
- is result of having namespace 'INBOX' in dovecot 2 settings.

Have any ideas?

I suggest you asking to Dovecot development team. Because, I use dovecot 
with some mail clients and there is no any problem.


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51b19e0e.90...@atifceylan.com



Re: Dovecot IMAP

2013-06-07 Thread M.Atıf CEYLAN

On 06/07/2013 03:06 PM, Alex Dubinin wrote:

07.06.2013 12:47, M.Atıf CEYLAN пишет:

On 06/06/2013 11:59 PM, Alex Dubinin wrote:

04.06.2013 18:15, Alex Dubinin пишет:

So work all mail clients that I tried! With other servers work fine. I
checked a few other servers. I think, this problem in namespaces. You
can try without thunderbird using telnet or openssl. My result: 04
LIST  * * LIST (\HasChildren) . INBOX * LIST (\HasNoChildren)
. INBOX.Trash But must be: 04 LIST  * * LIST (\HasNoChildren)
. INBOX * LIST (\HasNoChildren) . Trash The root folder INBOX
- is result of having namespace 'INBOX' in dovecot 2 settings.

Have any ideas?


I suggest you asking to Dovecot development team. Because, I use
dovecot with some mail clients and there is no any problem.


Ok, can you show me your dovecot -n ? I try it.


namespace {
  inbox = yes
  list = yes
  location =
  prefix = INBOX.
  separator = .
  subscriptions = yes
  type = private
}
.
plugin {
  autocreate = INBOX.Sent
  autocreate2 = INBOX.Drafts
  autocreate3 = INBOX.Junk
  autocreate4 = INBOX.Trash
  autosubscribe = INBOX.Sent
  autosubscribe2 = INBOX.Drafts
  autosubscribe3 = INBOX.Junk
  autosubscribe4 = INBOX.Trash
  quota = dict:User quota::proxy::quota
}

protocol imap {
  mail_plugins =  autocreate quota imap_quota
}

--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51b1cee3.6090...@atifceylan.com



Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 02:46 PM, Alex Dubinin wrote:

prefix = INBOX.

You should change this parameter to prefix = .

--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51add4ad.9040...@atifceylan.com



Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 12:13 PM, Alex Dubinin wrote:

This is my first experience of the mail server.
Set up a mail server from Postfix + Dovecot with the MySQL authorization.
When you create a new user dovecot makes strange folder structure: the
'inbox' contains 'juncus', 'tash', 'sent' etc.
ie 'sent' and other folders are subdir to the 'inbox'.
How to make the imap folders 'sent', 'trash' and others were not affiliated?

P.S. Sorry for my english.


Hi,
try below parameters in your dovecot conf file (if you use dovecot 2.x)

namespace {
  inbox = yes
  prefix = .
  separator = .
  subscriptions = yes
  list = yes
  type = private
}


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51add0f7.1010...@atifceylan.com



Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 02:59 PM, Alex Dubinin wrote:

Log result:
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: user EMAIL_ADDRESS:
Initialization failed: namespace configuration error: list=yes requires
prefix=. not to start with separator
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: Invalid user settings.
Refer to server log for more information.


Can you try again as prefix =(empty)?

--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51add7e8.3070...@atifceylan.com



Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 03:11 PM, Alex Dubinin wrote:

04.06.2013 16:04, M.Atıf CEYLAN пишет:

On 06/04/2013 02:59 PM, Alex Dubinin wrote:

Log result:
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: user EMAIL_ADDRESS:
Initialization failed: namespace configuration error: list=yes requires
prefix=. not to start with separator
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: Invalid user settings.
Refer to server log for more information.


Can you try again as prefix =(empty)?


Work.but again i have root folder 'inbox' and children folder: 'sent',
'drafts', 'queue', 'trash', not root folder without children.


look at this url http://wiki2.dovecot.org/Namespaces
and Namespace Settings section
it says :
 

 * prefix: The namespace prefix how it's visible in the NAMESPACE reply
   (if hidden=no) and mailbox list (if list=yes).
 *

   location:Mailbox location http://wiki2.dovecot.org/MailLocation.
   The default is to usemail_locationsetting.

 * inbox: yes, if this namespace contains the user's INBOX. There is
   only one INBOX, so only one namespace can have inbox=yes.
 * hidden: yes, if this namespace shouldn't be listed in NAMESPACE reply.

.
--
M.Atıf CEYLAN
Yurdum Yazılım


Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 03:26 PM, Alex Dubinin wrote:

04.06.2013 16:15, M.Atıf CEYLAN пишет:

On 06/04/2013 03:11 PM, Alex Dubinin wrote:

04.06.2013 16:04, M.Atıf CEYLAN пишет:

On 06/04/2013 02:59 PM, Alex Dubinin wrote:

Log result:
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: user EMAIL_ADDRESS:
Initialization failed: namespace configuration error: list=yes requires
prefix=. not to start with separator
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: Invalid user settings.
Refer to server log for more information.


Can you try again as prefix =(empty)?


Work.but again i have root folder 'inbox' and children folder: 'sent',
'drafts', 'queue', 'trash', not root folder without children.


look at this url http://wiki2.dovecot.org/Namespaces
and Namespace Settings section
it says :
 

  * prefix: The namespace prefix how it's visible in the NAMESPACE
reply (if hidden=no) and mailbox list (if list=yes).
 *

location:Mailbox location
http://wiki2.dovecot.org/MailLocation. The default is to
usemail_locationsetting.

  * inbox: yes, if this namespace contains the user's INBOX. There
is only one INBOX, so only one namespace can have inbox=yes.
  * hidden: yes, if this namespace shouldn't be listed in NAMESPACE
reply.

.
--
M.Atıf CEYLAN
Yurdum Yazılım
Thank you for your answer. I have read this guide, but it is not got 
me no matter what ideas and ways of solving this problem.
Have any ideas? 
I didn't apply these parameters. I'll try each option on my test server 
for you and write you the correct solution/suggestion.


--
M.Atıf CEYLAN
Yurdum Yazılım


Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 03:42 PM, Alex Dubinin wrote:

04.06.2013 16:38, M.Atıf CEYLAN пишет:

On 06/04/2013 03:26 PM, Alex Dubinin wrote:

04.06.2013 16:15, M.Atıf CEYLAN пишет:

On 06/04/2013 03:11 PM, Alex Dubinin wrote:

04.06.2013 16:04, M.Atıf CEYLAN пишет:

On 06/04/2013 02:59 PM, Alex Dubinin wrote:

Log result:
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: user EMAIL_ADDRESS:
Initialization failed: namespace configuration error: list=yes requires
prefix=. not to start with separator
2013-06-04 15:57:35 imap(EMAIL_ADDRESS): Error: Invalid user settings.
Refer to server log for more information.


Can you try again as prefix =(empty)?


Work.but again i have root folder 'inbox' and children folder: 'sent',
'drafts', 'queue', 'trash', not root folder without children.


look at this url http://wiki2.dovecot.org/Namespaces
and Namespace Settings section
it says :
 

  * prefix: The namespace prefix how it's visible in the NAMESPACE
reply (if hidden=no) and mailbox list (if list=yes).
 *

location:Mailbox location
http://wiki2.dovecot.org/MailLocation. The default is to
usemail_locationsetting.

  * inbox: yes, if this namespace contains the user's INBOX.
There is only one INBOX, so only one namespace can have inbox=yes.
  * hidden: yes, if this namespace shouldn't be listed in
NAMESPACE reply.

.
--
M.Atıf CEYLAN
Yurdum Yazılım
Thank you for your answer. I have read this guide, but it is not got 
me no matter what ideas and ways of solving this problem.
Have any ideas? 
I didn't apply these parameters. I'll try each option on my test 
server for you and write you the correct solution/suggestion.


--
M.Atıf CEYLAN
Yurdum Yazılım

Thank you.

Hi,
I tried the options on my test server. My current conf. is below

namespace {
  inbox = yes
  prefix = INBOX.
  separator = .
  subscriptions = yes
  list = yes
  type = private
}

plugin {
  autocreate = INBOX.Sent
  autocreate2 = INBOX.Drafts
  autocreate3 = INBOX.Junk
  autocreate4 = INBOX.Trash
  autosubscribe = INBOX.Sent
  autosubscribe2 = INBOX.Drafts
  autosubscribe3 = INBOX.Junk
  autosubscribe4 = INBOX.Trash
  quota = dict:User quota::proxy::quota
}

and  my mail user's folder item list shown :

drwx-- 2 vmail vmail  4096 Jun  4 16:07 cur
-rw--- 1 vmail vmail 17408 Jun  4 16:06 dovecot.index.cache
-rw--- 1 vmail vmail  1040 Jun  4 16:07 dovecot.index.log
-rw--- 1 vmail vmail96 Jun  4 16:08 dovecot.mailbox.log
-rw--- 1 vmail vmail   100 Jun  4 16:06 dovecot-uidlist
-rw--- 1 vmail vmail 8 Jun  4 16:08 dovecot-uidvalidity
-r--r--r-- 1 vmail vmail 0 Jun  4 16:06 dovecot-uidvalidity.51ade651
drwx-- 5 vmail vmail  4096 Jun  4 16:08 .Drafts
drwx-- 5 vmail vmail  4096 Jun  4 16:08 .Junk
drwx-- 2 vmail vmail  4096 Jun  4 16:06 new
drwx-- 5 vmail vmail  4096 Jun  4 16:07 .Sent
-rw--- 1 vmail vmail23 Jun  4 16:08 subscriptions
drwx-- 2 vmail vmail  4096 Jun  4 16:06 tmp
drwx-- 5 vmail vmail  4096 Jun  4 16:08 .Trash

I'm using roundcube webmail as mail client and I have tried on it.

--
M.Atıf CEYLAN
Yurdum Yazılım


Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 04:14 PM, M.Atıf CEYLAN wrote:

I'm using roundcube webmail as mail client and I have tried on it.
Perhaps you won't see correctly in already created user folder and you 
should new user create or remove all sub folders of your test user folder.


--
M.Atıf CEYLAN
Yurdum Yazılım


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51adeb44.4090...@atifceylan.com



Re: Dovecot IMAP

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 04:41 PM, Alex Dubinin wrote:
I plan to use e-mail client, not a web-interface. At the same local 
folder structure similar.

But:
. list  *
* LIST (\HasChildren) . INBOX
. OK List completed.

No trash, no drafts, no other folder. All this folder included in 
INBOX 

Answer must be (for example):
* LIST (\HasNoChildren) . Drafts
* LIST (\HasNoChildren) . INBOX
* LIST (\HasNoChildren) . Trash
* LIST (\HasNoChildren) . Sent
* LIST (\HasNoChildren) . spam

Yes, I have tried these settings and roundcube including but here is a 
little different email clients.

Here is my problem
http://superuser.com/questions/496222/how-do-i-make-all-my-imap-folders-siblings-instead-of-children-of-inbox
But I want to solve it on a server
I have changed the prefix param to prefix =  and thunderbird showed 
the sub folders without indent. When I sent an email to itself couldn't 
see any message into the root folders. But sent emails shown into the 
child sub folders. I think the problem reason is email client.

--
M.Atıf CEYLAN
Yurdum Yazılım


Re: Packageinstallation isolation.

2013-06-04 Thread M.Atıf CEYLAN

On 06/04/2013 05:12 PM, Sthu Deus wrote:

Good time of the day.


Is there a way/trick how i can install a 3rd party package in some kind
of isolation from whole system -- so that its binaries can not access
any files of whole OS -- being confined in usage only to one (list of)
user(s)?

Because there is plenty of software even packaged for Debian, but it
risky to use as is. On other hand compiling is not the easiest solution.

Thanks for your time.


Sthu.



you need to the chroot.
http://en.wikipedia.org/wiki/Chroot
http://wiki.debian.org/chroot

--
M.Atıf CEYLAN
Yurdum Yazılım