6 More Discussions You Might Find Interesting
1. Ubuntu
I am running postfix, courier-imap and Atmail Webmail client. I can telnet to port 143 I can send mail from the command line using the mail command to the user. When I try to login through webmail using the atmail client nothing happens. I check the the maillog and it shows the localhost address... (0 Replies)
Discussion started by: rbizzell
0 Replies
2. UNIX and Linux Applications
Hello,
I want to use vacation autoreply with courier userdb
Users is in "/etc/courier/userdb"
I search on forum but dont find anything about (only found for local and mysql user)
How to configure an user to use vacation (or other stuff) to make autoreply with userdb ?
Plateform :... (0 Replies)
Discussion started by: safsound
0 Replies
3. UNIX for Advanced & Expert Users
Hi, I have done a very stupid thing. I have migrated from Courier IMAP and POP to Dovecot without reading about the migration process. ( I resolve not to repeat it again).
Now it has been 2 weeks. Webmail seems to work fine. I have problems with POP3.
POP3 clients don't remove messages from the... (2 Replies)
Discussion started by: tmm
2 Replies
4. UNIX for Advanced & Expert Users
I am running Freebsd 6.1, Postfix 2.2, and Courier-IMAP 4.1 I can telnet to port 143 I can't connect to IMAP server using microsoft outlook or any client. The authdaemon is running and working correctly I did netstat -an | grep -i list and it shows port 143 bound to the localhost 127.0.0.1. I can... (1 Reply)
Discussion started by: rbizzell
1 Replies
5. BSD
I will be using postfix and courier-imap version 4.1. I never configured courier-imap. What configurations files do I have to configure and how do I start courier-imap. There isn't a authdaemonrc file in the courier-imap directorry. The files that are listed are
imapd
imap-ssl.dist... (0 Replies)
Discussion started by: rbizzell
0 Replies
6. HP-UX
Hi,
My box is freeBSD6 and I've installed courier-imap and I want to authenticate the clients against /etc/passwd file.
Inside the configuration file: /usr/local/etc/courier-imap/pop3d I've not these lines : Why?
AUTHMODULES="authdaemon"
AUTHMODULES_ORIG="authdaemon"
Nevertheless I tried... (5 Replies)
Discussion started by: efrenba
5 Replies
LEARN ABOUT PHP
imap_createmailbox
IMAP_CREATEMAILBOX(3) 1 IMAP_CREATEMAILBOX(3)
imap_createmailbox - Create a new mailbox
SYNOPSIS
bool imap_createmailbox (resource $imap_stream, string $mailbox)
DESCRIPTION
Creates a new mailbox specified by $mailbox.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $mailbox
- The mailbox name, see imap_open(3) for more information. Names containing international characters should be encoded by
imap_utf7_encode(3)
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
imap_createmailbox(3) example
<?php
$mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN)
or die("can't connect: " . imap_last_error());
$name1 = "phpnewbox";
$name2 = imap_utf7_encode("phpnewbox"); // phpnewb&w7Y-x
$newname = $name1;
echo "Newname will be '$name1'<br />
";
// we will now create a new mailbox "phptestbox" in your inbox folder,
// check its status after creation and finally remove it to restore
// your inbox to its initial state
if (@imap_createmailbox($mbox, imap_utf7_encode("{imap.example.org}INBOX.$newname"))) {
$status = @imap_status($mbox, "{imap.example.org}INBOX.$newname", SA_ALL);
if ($status) {
echo "your new mailbox '$name1' has the following status:<br />
";
echo "Messages: " . $status->messages . "<br />
";
echo "Recent: " . $status->recent . "<br />
";
echo "Unseen: " . $status->unseen . "<br />
";
echo "UIDnext: " . $status->uidnext . "<br />
";
echo "UIDvalidity:" . $status->uidvalidity . "<br />
";
if (imap_renamemailbox($mbox, "{imap.example.org}INBOX.$newname", "{imap.example.org}INBOX.$name2")) {
echo "renamed new mailbox from '$name1' to '$name2'<br />
";
$newname = $name2;
} else {
echo "imap_renamemailbox on new mailbox failed: " . imap_last_error() . "<br />
";
}
} else {
echo "imap_status on new mailbox failed: " . imap_last_error() . "<br />
";
}
if (@imap_deletemailbox($mbox, "{imap.example.org}INBOX.$newname")) {
echo "new mailbox removed to restore initial state<br />
";
} else {
echo "imap_deletemailbox on new mailbox failed: " . implode("<br />
", imap_errors()) . "<br />
";
}
} else {
echo "could not create new mailbox: " . implode("<br />
", imap_errors()) . "<br />
";
}
imap_close($mbox);
?>
SEE ALSO
imap_renamemailbox(3), imap_deletemailbox(3).
PHP Documentation Group IMAP_CREATEMAILBOX(3)