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@linux.site; $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.
* JUAN ERNESTO FLORES BELTRAN
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?
*Normally* in SuSE distros postfix delivers mail to /var/spool/mail/... or to /var/mail which is a link to /var/spool/mail/. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
Hi Patrick, I entered: #cd /var/spool/mail #ls . .. root then #cd /var/mail #ls . .. root it seems there are no messages in there.... what should i do next?? regards.-
From: Patrick Shanahan
To: suse-linux-e@suse.com Subject: Re: [SLE] Configuring Postfix Server Date: Tue, 1 Nov 2005 15:15:57 -0500 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
* JUAN ERNESTO FLORES BELTRAN
[11-01-05 15:10]: 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?
*Normally* in SuSE distros postfix delivers mail to /var/spool/mail/... or to /var/mail which is a link to /var/spool/mail/.
-- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
* JUAN ERNESTO FLORES BELTRAN
I entered:
#cd /var/spool/mail #ls . .. root
then
#cd /var/mail #ls . .. root
it seems there are no messages in there.... what should i do next?? regards.-
#1 Please do not top-post #2 Please trim your quotes You are looking for 'root' mail and you have found it. /var/spool/mail/root to read, open /var/spool/mail/root with your mail client of choice as root, ie: nail -f /var/spool/mail/root -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
i did #nail -f /var/spool/mail/root and i got the following: ....................................................................................................................................... mailx version nail 11.4 8/29/04. Type ? for help. "/var/spool/mail/root": 10 messages 8 unread. 0 1 MAILER-DAEMON@linu Mon Oct 24 18:49 66/1976 Undelivered Mail Returned to Sender 0 2 MAILER-DAEMON@linu Mon Oct 24 19:02 66/1976 Undelivered Mail Returned to Sender U 3 MAILER-DAEMON@linu Mon Oct 24 19:02 66/1975 Undelivered Mail Returned to Sender U 4 MAILER-DAEMON@linu Mon Oct 25 17:51 66/1975 Undelivered Mail Returned to Sender U 5 MAILER-DAEMON@linu Mon Oct 25 17:52 66/1975 Undelivered Mail Returned to Sender U 6 MAILER-DAEMON@linu Mon Oct 26 13:39 66/1975 Undelivered Mail Returned to Sender U 7 MAILER-DAEMON@linu Mon Oct 26 10:06 66/1935 Undelivered Mail Returned to Sender U 8 MAILER-DAEMON@linu Mon Oct 31 16:36 66/2138 Undelivered Mail Returned to Sender U 9 MAILER-DAEMON@linu Mon Oct 31 16:36 66/2138 Undelivered Mail Returned to Sender U 10 MAILER-DAEMON@linu Mon Oct 31 16:36 66/1975 Undelivered Mail Returned to Sender I am sorry to inform that your message could not be delivered to one or more recipients. It´s attacjed below. for further assistance please send mail to <postmaster> If you do so please include this problem report. You can delete your own text from the attached returned message. admisnistrator@linux.site : unknown user: administrator Final-Recipient: rfc822: Administrator@linux.site Action: failed Status: 5.0.0 Diagnostic Code: X-Postfix: unknown user: "Administrator" ................................................... so it seems there the user administrator@linux.site has not been created I supposed it must be created at any of the tables (canonical, virtual, etc) that postfix requires for mapping what table should I use?? Regards.-
* JUAN ERNESTO FLORES BELTRAN
so it seems there the user administrator@linux.site has not been created I supposed it must be created at any of the tables (canonical, virtual, etc) that postfix requires for mapping what table should I use??
man aliases edit /etc/aliases make administrator an alias for <you> administrator: <you> while you are at it, might as well have root's mail delivered to you. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
thank you very much!!! it did work!!, i would really like to know how to erase all mails at /var/spool/mail/root sorry for the "dummy" questions i just starting with postfix... Thanks for your answers.. Regards
From: Patrick Shanahan
To: suse-linux-e@suse.com Subject: Re: [SLE] Configuring Postfix Server Date: Tue, 1 Nov 2005 16:52:23 -0500 * JUAN ERNESTO FLORES BELTRAN
[11-01-05 16:34]: so it seems there the user administrator@linux.site has not been created I supposed it must be created at any of the tables (canonical, virtual, etc) that postfix requires for mapping what table should I use??
man aliases
edit /etc/aliases make administrator an alias for <you>
administrator: <you>
while you are at it, might as well have root's mail delivered to you. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
* JUAN ERNESTO FLORES BELTRAN
thank you very much!!!
it did work!!, i would really like to know how to erase all mails at
/var/spool/mail/root
PLEASE trim your quotes and try to not top post. You don't want the answers before the question. //// nail -f /var/spool/mail/root h 001 displays an index of messages d 1-99 deletes 1 thru 99 ? explains commands q quit, saving unresolved messages open nail again to see if you were successful you could also just: rm /var/spool/mail/root man nail man rm -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
pliz man alias
On 11/2/05, Patrick Shanahan
* JUAN ERNESTO FLORES BELTRAN
[11-01-05 19:26]: thank you very much!!!
it did work!!, i would really like to know how to erase all mails at
/var/spool/mail/root
PLEASE trim your quotes and try to not top post. You don't want the answers before the question. ////
nail -f /var/spool/mail/root h 001 displays an index of messages d 1-99 deletes 1 thru 99 ? explains commands q quit, saving unresolved messages
open nail again to see if you were successful
you could also just: rm /var/spool/mail/root
man nail man rm
-- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- ==== Exercise Your Freedom Use Unix - Ronnie Tash =========== Nsubuga Ronald, Makerere University, Faculty of Computing and IT, P.O.Box 7062, Kampala, Uganda.
* ronnie tash
pliz man alias
full quote removed and top posting forgiven. how will 'man alias' help the OP find how to delete email to root? Alias has nothing to do with email, the term you are thinking about is 'aliases' , 'man aliases' and still will not help him remove email to root. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
On Tue, 2005-11-01 at 21:34 +0000, JUAN ERNESTO FLORES BELTRAN wrote:
i did
#nail -f /var/spool/mail/root
and i got the following: ....................................................................................................................................... mailx version nail 11.4 8/29/04. Type ? for help. "/var/spool/mail/root": 10 messages 8 unread. 0 1 MAILER-DAEMON@linu Mon Oct 24 18:49 66/1976 Undelivered Mail Returned to Sender 0 2 MAILER-DAEMON@linu Mon Oct 24 19:02 66/1976 Undelivered Mail Returned to Sender U 3 MAILER-DAEMON@linu Mon Oct 24 19:02 66/1975 Undelivered Mail Returned to Sender U 4 MAILER-DAEMON@linu Mon Oct 25 17:51 66/1975 Undelivered Mail Returned to Sender U 5 MAILER-DAEMON@linu Mon Oct 25 17:52 66/1975 Undelivered Mail Returned to Sender U 6 MAILER-DAEMON@linu Mon Oct 26 13:39 66/1975 Undelivered Mail Returned to Sender U 7 MAILER-DAEMON@linu Mon Oct 26 10:06 66/1935 Undelivered Mail Returned to Sender U 8 MAILER-DAEMON@linu Mon Oct 31 16:36 66/2138 Undelivered Mail Returned to Sender U 9 MAILER-DAEMON@linu Mon Oct 31 16:36 66/2138 Undelivered Mail Returned to Sender U 10 MAILER-DAEMON@linu Mon Oct 31 16:36 66/1975 Undelivered Mail Returned to Sender
I am sorry to inform that your message could not be delivered to one or more recipients. It´s attacjed below.
for further assistance please send mail to <postmaster>
If you do so please include this problem report. You can delete your own text from the attached returned message.
admisnistrator@linux.site : unknown user: “administrator”
Final-Recipient: rfc822: Administrator@linux.site Action: failed Status: 5.0.0 Diagnostic Code: X-Postfix: unknown user: "Administrator" ………………………………………………………………………………………...................................................
so it seems there the user administrator@linux.site has not been created I supposed it must be created at any of the tables (canonical, virtual, etc) that postfix requires for mapping…what table should I use?? Regards.-
Never has been an administrator account that I can recall, remember this is not windows. Mail needs to go to the root account. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
participants (4)
-
JUAN ERNESTO FLORES BELTRAN
-
Ken Schneider
-
Patrick Shanahan
-
ronnie tash