INFORMATICS

The Best

Useful tools postfix

Automatically translated document

Useful tools postfix
Tools postfix queue:
mailq
Checking the postfix queue
mailq or sendmail -q -bp
list of messages in the queue to serve
#tail -f / var / log / messages | grep sasl
Checking SASL Auth
#tail -f / var / log / maillog | grep postfix
check logos Posfix
# qshape-maia -s deferred
List of detainees mails
postqueue -p
listing the message queue - shows all the mails in the queue
postcat -q
view the contents of the queue file
postsuper -d (Queue ID)
allows you to delete the message from the queue with the given ID
postsuper -d ALL
delete all messages from the queue
postqueue -f
refresh queue - sends all mail queue
postqueue –i queue_id
immediate delivery of specified email deferred ID
postsuper -h (Queue ID)
stop the messages in the queue (queue hold)
postsuper -H (Queue ID)
move the message back to the queue manager
postsuper -r ALL
returns the message back to the queue, the message they receive new IDs and additional header Received
postqueue -s domain
sending a message from the queue for the specified domain

Error creating mailbox postfix

Error creatingmailboxpostfix
Automaticallytranslateddocument

 

After you create a mailbox when you try to receive e-mail you get the message:

imap-login: Login: user=<test3>, method=PLAIN, rip=1::1, lip=::1, mipd=21177, secured

imap(test3): Error: chown (/home/test3/mail/.imap/INBOX, -1,12(mail)) failed: Operation not permitted (egid=514(test3), group based on /var/spool/mail/test3)

imap(test3): Error: mkdir (/home/test3/mail/.imap/INBOX) failed: Operation not permitted

Disconnected: Logged out bytes=50/552

Troubleshooting:

The problem can be solved in several ways, change the permissions on the folder chmod 0600 / var / spool / mail / *, and the mailbox and /home/test3/mail/.imap/*

(chmod g-rwx / var / spool / newuser, chgrp / var / spool / newuser)

Give access to the process of post - mail_access_groups = mail

You can also manually set up a folder INBOX folder permissions setting /home/test3/mail/.imap/ same user rights (chown test3.test3 INBOX)

 

Błąd roundcube po przeniesieniu

Po przeniesieniu poczty roundcube na inny serwer użytkownicy podczas próby wejścia do folderu wysłane wyskakuje błąd

Błąd w logach:

dovecot: imap-login: Login: user=<user>, method=PLAIN, rip=::1, lip=::1, mpid-12261, secured

dovecot imap(user): Disconected: Logged out bytes=448/8830

dovecot: imap (user): Error: stat (/home/user/Maildir/.Draft/tmp) failed: Permission denied (euid=505)user) egid=505 (user) missing +x perm: /homeuser/Maildir/.Drafts, euid is not dir owner)

Rozwiązanie:

Błąd ten związany jest z błędnymi uprawnieniami dostępu do folderów. Najprawdopodobniej jeden z folderów w lokalizacji Maildir ma źle ustawionego właściciela folderu.

Kopiując folder z innego serwera poświadczenia do folderu mogą zginąć.

Naprawiamy to opcją chown -R user.user * stojąc w właściwej lokalizacji.

Należy zwrócić uwagę że w folderze Maildir są foldery ukryte /.Sent, /.Trash trzeba sprawdzić czy na nich zmieniliśmy właścicieli.

sprawdzamy to np loleceniem

ls -a -l

Jeżeli właściciel tych folderów jest ustawiony błędnie dostaniemy błąd i nie będziemy mogli kasować oraz wchodzić do folderu wysłane elementy

Search