|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Dear all
i need to move spool dir of postfix to a new disk, i've put into main.cf the paramater mail_spool_directory = /newdir but ... postfix still park the mail into /var/spool/mail. Checked with postconf the parameter that has been charged, checked protection of the dir are the same of the old ... someone could me about ? Thanks in advance alessandro |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
alexpt@hotmail.com wrote:
> Dear all > > i need to move spool dir of postfix to a new disk, i've put into > main.cf the paramater mail_spool_directory = /newdir but ... postfix > still park the mail into /var/spool/mail. > > Checked with postconf the parameter that has been charged, checked > protection of the dir are the same of the old ... > > someone could me about ? > > Thanks in advance > alessandro Could you post the output of "postconf -n" ? That might in figuring out the problem. -- Greg |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
yes sure
Many thanks Alessandro alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases always_bcc = internal@linuxto append_dot_mydomain = no biff = no config_directory = /etc/postfix delay_warning_time = 4h inet_interfaces = all mail_spool_directory = /home/mail #inserito da Piatti in data 16/5/06 dopo /var piena mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = linuxto, localhost.localdomain, localhost, linuxto.iwata.to.it myhostname = linuxto.iwata.to.it mynetworks = 127.0.0.0/8 132.147.160.0/24 192.168.0.0/24 192.168.1.0/24 recipient_delimiter = + relayhost = smtp.colt.net smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) Greg Hackney wrote: > alexpt@hotmail.com wrote: > > Dear all > > > > i need to move spool dir of postfix to a new disk, i've put into > > main.cf the paramater mail_spool_directory = /newdir but ... postfix > > still park the mail into /var/spool/mail. > > > > Checked with postconf the parameter that has been charged, checked > > protection of the dir are the same of the old ... > > > > someone could me about ? > > > > Thanks in advance > > alessandro > > Could you post the output of "postconf -n" ? That might > in figuring out the problem. > > -- > Greg |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Hello Alessandro,
Here is what I think may be wrong, this line here: mail_spool_directory = /home/mail #inserito da Piatti in data 16/5/06 You can't put comments at the end of the string like you can in a shell script. It would need to be done like this: # inserito da Piatti in data 16/5/06 mail_spool_directory = /home/mail -- Greg |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
hi Greg
Sorry to disturb you, suggested modification as done but without success, i'll include the new postconf ... hope you could me again Thanks a lot Alessandro alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases always_bcc = internal@linuxto append_dot_mydomain = no biff = no config_directory = /etc/postfix delay_warning_time = 4h inet_interfaces = all mail_spool_directory = /home/mail mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = linuxto, localhost.localdomain, localhost, linuxto.iwata.to.it myhostname = linuxto.iwata.to.it mynetworks = 127.0.0.0/8 132.147.160.0/24 192.168.0.0/24 192.168.1.0/24 recipient_delimiter = + relayhost = smtp.colt.net smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
alexpt@hotmail.com wrote:
> hi Greg > Sorry to disturb you, suggested modification as done but without > success, i'll include the new postconf ... hope you could me again > Thanks a lot > Alessandro > > alias_database = hash:/etc/aliases > alias_maps = hash:/etc/aliases > always_bcc = internal@linuxto > append_dot_mydomain = no > biff = no > config_directory = /etc/postfix > delay_warning_time = 4h > inet_interfaces = all > mail_spool_directory = /home/mail > mailbox_command = procmail -a "$EXTENSION" > mailbox_size_limit = 0 > mydestination = linuxto, localhost.localdomain, localhost, > linuxto.iwata.to.it > myhostname = linuxto.iwata.to.it > mynetworks = 127.0.0.0/8 132.147.160.0/24 192.168.0.0/24 192.168.1.0/24 > recipient_delimiter = + > relayhost = smtp.colt.net > smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) I'm sorry that I didn't notice this before, but it appears that "procmail" is doing the final mailbox delivery, and not Postfix: mailbox_command = procmail -a "$EXTENSION" Take a look at the procmail configs. -- Greg |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
yes it is
procmail manage the delivery i've build this procmailrc into /etc SHELL=/bin/sh MAILDIR=${HOME}/mail LOGFILE=/var/log/procmail and it seems to be running, into the log i'll find he procmail process log, but the mail still be parked into /var/mail the user dir /home/name/mail still exists with 777 mode protection, the user it's the owner and users it's group where am i in fall ? Thansk again alessandro Greg Hackney wrote: > alexpt@hotmail.com wrote: > > hi Greg > > Sorry to disturb you, suggested modification as done but without > > success, i'll include the new postconf ... hope you could me again > > Thanks a lot > > Alessandro > > > > alias_database = hash:/etc/aliases > > alias_maps = hash:/etc/aliases > > always_bcc = internal@linuxto > > append_dot_mydomain = no > > biff = no > > config_directory = /etc/postfix > > delay_warning_time = 4h > > inet_interfaces = all > > mail_spool_directory = /home/mail > > mailbox_command = procmail -a "$EXTENSION" > > mailbox_size_limit = 0 > > mydestination = linuxto, localhost.localdomain, localhost, > > linuxto.iwata.to.it > > myhostname = linuxto.iwata.to.it > > mynetworks = 127.0.0.0/8 132.147.160.0/24 192.168.0.0/24 192.168.1.0/24 > > recipient_delimiter = + > > relayhost = smtp.colt.net > > smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) > > > I'm sorry that I didn't notice this before, but it appears that "procmail" > is doing the final mailbox delivery, and not Postfix: > > mailbox_command = procmail -a "$EXTENSION" > > Take a look at the procmail configs. > > -- > Greg |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
alexpt@hotmail.com wrote:
> procmail manage the delivery > i've build this procmailrc into /etc > > SHELL=/bin/sh > MAILDIR=${HOME}/mail > LOGFILE=/var/log/procmail > > and it seems to be running, into the log i'll find he procmail process > log, but the mail still be parked into /var/mail I'm just taking guesses here... but is it possible that the user's own .procmailrc file is taking precedence over the system's procmailrc file ? I assume this might have something to do with the definition of "$(HOME)", as to where procmail will look for the user's procmailrc files. -- Greg |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
The echo $(HOME) from the user environment drive me the the /home/user
directory, this i hope means the that the mail will be deleivered to /home/user/mail directory that in fact don't happen. The .procmailrc user doesn't exists, but i tried to create it without success .... HEEELLLLPPPP :-((( thanks aganin Alessandro Greg Hackney wrote: > alexpt@hotmail.com wrote: > > procmail manage the delivery > > i've build this procmailrc into /etc > > > > SHELL=/bin/sh > > MAILDIR=${HOME}/mail > > LOGFILE=/var/log/procmail > > > > and it seems to be running, into the log i'll find he procmail process > > log, but the mail still be parked into /var/mail > > I'm just taking guesses here... but is it possible that the > user's own .procmailrc file is taking precedence over the system's procmailrc file ? > > I assume this might have something to do with the definition of "$(HOME)", > as to where procmail will look for the user's procmailrc files. > > -- > Greg |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
YESSSSSS
something happnede! this procmailrc SHELL=/bin/sh MAILDIR=${HOME}/mail/$USER DEFAULT=$MAILDIR LOGFILE=/var/log/procmail works as follow, mail will be parked into dir /home/user/mail/user but .... one file per mail this mean a have a loooooooooot of files... before one file per user ... any suggestion ? Thanks again alessandro alexpt@hotmail.com wrote: > The echo $(HOME) from the user environment drive me the the /home/user > directory, this i hope means the that the mail will be deleivered to > /home/user/mail directory that in fact don't happen. > > The .procmailrc user doesn't exists, but i tried to create it without > success .... > HEEELLLLPPPP > > :-((( > > thanks aganin > Alessandro > > Greg Hackney wrote: > > alexpt@hotmail.com wrote: > > > procmail manage the delivery > > > i've build this procmailrc into /etc > > > > > > SHELL=/bin/sh > > > MAILDIR=${HOME}/mail > > > LOGFILE=/var/log/procmail > > > > > > and it seems to be running, into the log i'll find he procmail process > > > log, but the mail still be parked into /var/mail > > > > I'm just taking guesses here... but is it possible that the > > user's own .procmailrc file is taking precedence over the system's procmailrc file ? > > > > I assume this might have something to do with the definition of "$(HOME)", > > as to where procmail will look for the user's procmailrc files. > > > > -- > > Greg |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
alexpt@hotmail.com wrote:
> YESSSSSS > > something happnede! > > this procmailrc > > SHELL=/bin/sh > MAILDIR=${HOME}/mail/$USER > DEFAULT=$MAILDIR > LOGFILE=/var/log/procmail > > works as follow, mail will be parked into dir /home/user/mail/user but > ... one file per mail > this mean a have a loooooooooot of files... > > before one file per user ... > > any suggestion ? Try making DEFAULT point to a filename instead of a directory, for example: DEFAULT=$MAILDIR/mbox -- Greg |
|
![]() |
| Outils de la discussion | |
|
|