[MRBS-general] postfix and mrbs...
Brought to you by:
jberanek
From: Marcelo L. <mar...@as...> - 2011-02-24 12:54:24
|
First things first, postfix and MRBS are on the same server (opensuse), postfix works fine from the terminal ... send e-mails within my domain (the idea). So far I took a couple of steps to configure postfix and MRBS: need someone to give me a look at what I've done to see if they notice an error First my php.ini settings [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = root@mydomain ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = /usr/sbin/sendmail -t -i ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename mail.add_x_header = On ; Log all mail() calls including the full path of the script, line #, to address and headers ;mail.log = Now my config.inc.php. // WHO TO EMAIL // ------------ // The following settings determine who should be emailed when a booking is made, // edited or deleted (though the latter two events depend on the "When" settings below). // Set to TRUE or FALSE as required // (Note: the email addresses for the room and area administrators are set from the // edit_area_room.php page in MRBS) $mail_settings['admin_on_bookings'] = TRUE; // the addresses defined by $mail_settings['recipients'] below $mail_settings['area_admin_on_bookings'] = TRUE; // the area administrator $mail_settings['room_admin_on_bookings'] = TRUE; // the room administrator $mail_settings['booker'] = TRUE; // the person making the booking $mail_settings['book_admin_on_approval'] = TRUE; // the booking administrator when booking approval is enabled // (which is the MRBS admin, but this setting allows MRBS // to be extended to have separate booking approvers) // WHEN TO EMAIL // ------------- // These settings determine when an email should be sent. // Set to TRUE or FALSE as required // // (Note: (a) the variables $mail_settings['admin_on_delete'] and // $mail_settings['admin_all'], which were used in MRBS versions 1.4.5 and // before are now deprecated. They are still supported for reasons of backward // compatibility, but they may be withdrawn in the future. (b) the default // value of $mail_settings['on_new'] is TRUE for compatibility with MRBS 1.4.5 // and before, where there was no explicit config setting, but mails were always sent // for new bookings if there was somebody to send them to) $mail_settings['on_new'] = TRUE; // when an entry is created $mail_settings['on_change'] = TRUE; // when an entry is changed $mail_settings['on_delete'] = TRUE; // when an entry is deleted // WHAT TO EMAIL // ------------- // These settings determine what should be included in the email // Set to TRUE or FALSE as required $mail_settings['details'] = TRUE; // Set to TRUE if you want full booking details; // otherwise you just get a link to the entry $mail_settings['html'] = FALSE; // Set to true if you want HTML mail $mail_settings['icalendar'] = FALSE; // Set to TRUE to include iCalendar details // which can be imported into a calendar. (Note: // iCalendar details will not be sent for areas // that use periods as there isn't a mapping between // periods and time of day, so the calendar would not // be able to import the booking) // HOW TO EMAIL - CHARACTER SET AND LANGUAGE // ----------------------------------------- // You can override the charset used in emails if you like, but be sure // the charset you choose can handle all the characters in the translation // and that anyone may use in a booking description //$mail_charset = "iso-8859-1"; // Set the language used for emails (choose an available lang.* file). $mail_settings['admin_lang'] = 'es'; // Default is 'en'. // HOW TO EMAIL - ADDRESSES // ------------------------ // The email addresses of the MRBS administrator are set in the config file, and // those of the room and area administrators are set though the edit_area_room.php // in MRBS. But if you have set $mail_settings['booker'] above to TRUE, MRBS will // need the email addresses of ordinary users. If you are using the "db" // authentication method then MRBS will be able to get them from the users table. But // if you are using any other authentication scheme then the following settings allow // you to specify a domain name that will be appended to the username to produce a // valid email address (eg "@domain.com"). $mail_settings['domain'] = '@mydomain'; // If you use $mail_settings['domain'] above and username returned by mrbs contains extra // strings appended like domain name ('username.domain'), you need to provide // this extra string here so that it will be removed from the username. $mail_settings['username_suffix'] = ''; // HOW TO EMAIL - BACKEND // ---------------------- // Set the name of the backend used to transport your mails. Either 'mail', // 'smtp' or 'sendmail'. Default is 'mail'. See INSTALL for more details. //$mail_settings['admin_backend'] = 'mail'; $mail_settings['admin_backend'] = 'mail'; /******************* * Sendmail settings ********************/ // Set the path of the Sendmail program (only used with "sendmail" backend). // Default is '/usr/bin/sendmail' $sendmail_settings['path'] = '/usr/sbin/sendmail'; // Set additional Sendmail parameters (only used with "sendmail" backend). // (example "-t -i"). Default is '' $sendmail_settings['args'] = ' -t -i'; /******************* * SMTP settings ********************/ // These settings are only used with the "smtp" backend" //$smtp_settings['host'] = 'localhost'; // SMTP server //$smtp_settings['port'] = 25; // SMTP port number //$smtp_settings['path'] = '/usr/bin/sendmail'; // Un invento a ver que sale //$smtp_settings['auth'] = FALSE; // Whether to use SMTP authentication //$smtp_settings['username'] = ''; // Username (if using authentication) //$smtp_settings['password'] = ''; // Password (if using authentication) // EMAIL - MISCELLANEOUS // --------------------- // Set the email address of the From field. Default is 'adm...@yo... ' //$mail_settings['from'] = 'marcelolemos@mydomain'; $mail_settings['from'] ='ro...@my...'; // Set the recipient email. Default is 'adm...@yo...'. You can define // more than one recipient like this "jo...@do...,sc...@ti..." $mail_settings['recipients'] = 'mar...@my...'; // Set email address of the Carbon Copy field. Default is ''. You can define // more than one recipient (see 'recipients') $mail_settings['cc'] = 'marcelo.lemos@myotherdomain'; // Set to TRUE if you want the cc addresses to be appended to the to line. // (Some email servers are configured not to send emails if the cc or bcc // fields are set) $mail_settings['treat_cc_as_to'] = FALSE; // The filename to be used for iCalendar attachments. Will always have the // extension '.ics' //$mail_settings['ics_filename'] = "booking"; Details: my domain (so the server MRBS) is not the same from where I have my real email ... are two separate servers: root@mydomian come to be who sends mail to marcelo.lemos@myotherdomain, as I said, I can, use postfix to send the e-mail from one server to another without problems (this correctly configured). but do not get it done by the php .... Any ideas? -- Saludos, Marcelo |