Mailinglist Archive: opensuse (4570 mails)
| < Previous | Next > |
Configuring Postfix Server
- From: "JUAN ERNESTO FLORES BELTRAN" <juanernestof@xxxxxxxxxxx>
- Date: Tue, 1 Nov 2005 20:07:57 +0000 (UTC)
- Message-id: <BAY14-F100DFD4F8D28D043ADC59CCD6F0@xxxxxxx>
Hi everyone,
I am trying to configure my postfix server and i still not sure the best way to do it.
Actually i am designing a system based on php-postgresql, it is configured as apache, postgresql and postfix server (everything is supposed to be executed from the same computer). the system is intended to send e-mails to postfix under certain conditions, when the condition is achieved then php sends the mail as follows:
...............................................................................................................................
<?php
$to=administrator@xxxxxxxxxx;
$subject=New request;
$Body=A new request has been made
if (mail($to, $subject, $Body)){
echo(<p>Messagge successfully sent!</p>);
}
else
{
echo(<p>Messagge delivery failed .</p>);
?>
................................................................................................................................
I am sending e-mails to @linux.site domain because of it is my computers default hostname:
................................................................................................................................
# postconf
myhostname = linux.site
mydomain = linux.site
................................................................................................................................
every time the condition is reached i receive the message: "Message successfully sent!" this means postfix has received the message, and it does even when postfix is unused (/etc/init.d/postfix stop)
then the message is sent to the queue until postfix is started again (/etc/init.d/postfix start) i can see the enqueued message by using #mailq command.
Well everything is ok by now, but i still not know where the message is sent once postfix is started again. I mean the message is just moved to the active queue and probably delivered to the mailbox via qmgràlocal processes. But how can I open the message from console and verify its content??? What is the command required and where the mailbox is located?
As follows al the info related to milbox according to postconf:
# postconf d
home_mailbox =
mailbox_command =
mailbox_command_map =
mailbox_delivery_lock = fcntl, dotlock
mailbox_size_limit = 0
mailbox_transport =
virtual_mailbox_base =
virtual_mailbox_domains = $virtual_mailbox_maps
virtual_mailbox_limit = 51200000
virtual_mailbox_lock = fcntl
virtual_mailbox_maps =
and,
# postconf n
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
well, this was my first question. The next one is related to the tables used to route every message. Actually I am trying to send mails by using postfix and I would like to use squirrelmail to read such messages. What tables do I need to configure in order to send mail properly to the mailbox LOCALLY on my computer and read them from a mail account by using squirrelmail??
On the other hand, how do I edit every table?, I mean I have got into every table by:
# pico /etc/postfix/canonical
# vi :/etc/postfix/canonical
etc
and it seems there is no fields to fill in do I have to erase the whole content of each table an edit its content???
Thanks for your answers in advance..
Regards
Juan
PD: everything is supposed to be executed from the same computer (suse 10), it is configured as apache, postgresql and postfix server.
I am trying to configure my postfix server and i still not sure the best way to do it.
Actually i am designing a system based on php-postgresql, it is configured as apache, postgresql and postfix server (everything is supposed to be executed from the same computer). the system is intended to send e-mails to postfix under certain conditions, when the condition is achieved then php sends the mail as follows:
...............................................................................................................................
<?php
$to=administrator@xxxxxxxxxx;
$subject=New request;
$Body=A new request has been made
if (mail($to, $subject, $Body)){
echo(<p>Messagge successfully sent!</p>);
}
else
{
echo(<p>Messagge delivery failed .</p>);
?>
................................................................................................................................
I am sending e-mails to @linux.site domain because of it is my computers default hostname:
................................................................................................................................
# postconf
myhostname = linux.site
mydomain = linux.site
................................................................................................................................
every time the condition is reached i receive the message: "Message successfully sent!" this means postfix has received the message, and it does even when postfix is unused (/etc/init.d/postfix stop)
then the message is sent to the queue until postfix is started again (/etc/init.d/postfix start) i can see the enqueued message by using #mailq command.
Well everything is ok by now, but i still not know where the message is sent once postfix is started again. I mean the message is just moved to the active queue and probably delivered to the mailbox via qmgràlocal processes. But how can I open the message from console and verify its content??? What is the command required and where the mailbox is located?
As follows al the info related to milbox according to postconf:
# postconf d
home_mailbox =
mailbox_command =
mailbox_command_map =
mailbox_delivery_lock = fcntl, dotlock
mailbox_size_limit = 0
mailbox_transport =
virtual_mailbox_base =
virtual_mailbox_domains = $virtual_mailbox_maps
virtual_mailbox_limit = 51200000
virtual_mailbox_lock = fcntl
virtual_mailbox_maps =
and,
# postconf n
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
well, this was my first question. The next one is related to the tables used to route every message. Actually I am trying to send mails by using postfix and I would like to use squirrelmail to read such messages. What tables do I need to configure in order to send mail properly to the mailbox LOCALLY on my computer and read them from a mail account by using squirrelmail??
On the other hand, how do I edit every table?, I mean I have got into every table by:
# pico /etc/postfix/canonical
# vi :/etc/postfix/canonical
etc
and it seems there is no fields to fill in do I have to erase the whole content of each table an edit its content???
Thanks for your answers in advance..
Regards
Juan
PD: everything is supposed to be executed from the same computer (suse 10), it is configured as apache, postgresql and postfix server.
| < Previous | Next > |