mail:
enable: true
sender_address: 'diaspora@immae.eu'
- method: 'smtp'
+ method: 'sendmail'
smtp:
- host: 'mail.immae.eu'
sendmail:
+ location: '/run/wrappers/bin/sendmail'
admins:
account: "ismael"
podmin_email: 'diaspora@immae.eu'
$g_allow_anonymous_login = ON;
$g_anonymous_account = 'anonymous';
- $g_phpMailer_method = PHPMAILER_METHOD_SMTP;
- $g_smtp_host = 'mail.immae.eu';
+ $g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL;
+ $g_smtp_host = 'localhost';
$g_smtp_username = ''';
$g_smtp_password = ''';
$g_webmaster_email = 'webmaster@immae.eu';
VAPID_PRIVATE_KEY=${env.vapid.private}
VAPID_PUBLIC_KEY=${env.vapid.public}
- SMTP_SERVER=mail.immae.eu
- SMTP_PORT=587
+ SMTP_DELIVERY_METHOD=sendmail
SMTP_FROM_ADDRESS=notifications@mastodon.immae.eu
- SMTP_DELIVERY_METHOD=smtp
+ SENDMAIL_LOCATION="/run/wrappers/bin/sendmail"
PAPERCLIP_ROOT_PATH=${varDir}
STREAMING_CLUSTER_NUM=1
cp -a $mastodon $out
cd $out
chmod u+rwX . public
+ chmod -R u+rwX config/
+ sed -i -e 's@^end$@ config.action_mailer.sendmail_settings = { location: ENV.fetch("SENDMAIL_LOCATION", "/usr/sbin/sendmail") }\nend@' config/environments/production.rb
RAILS_ENV=production ${gems}/bin/rails assets:precompile
rm -rf tmp/cache
ln -sf ../../../../../../../${varDir}/tmp/cache tmp
define('REG_NOTIFY_ADDRESS', 'outils@immae.eu');
define('REG_MAX_USERS', 10);
- define('SMTP_SERVER', 'mail.immae.eu:25');
- define('SMTP_LOGIN', ''');
- define('SMTP_PASSWORD', ''');
- define('SMTP_SECURE', 'tls');
-
define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
define('SMTP_FROM_ADDRESS', 'outils@immae.eu');
define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
database_socket: null
database_charset: utf8
domain_name: https://tools.immae.eu/wallabag
- mailer_transport: smtp
- mailer_host: mail.immae.eu
+ mailer_transport: sendmail
+ mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: fr
ldap_email_attribute: mail
ldap_name_attribute: cn
ldap_enabled_attribute: null
+ services:
+ swiftmailer.mailer.default.transport:
+ class: Swift_SendmailTransport
+ arguments: ['/run/wrappers/bin/sendmail -bs']
'';
webappDir = composerEnv.buildPackage rec {
packages = {
; Needed to avoid clashes in browser cookies (same domain)
php_value[session.name] = WallabagPHPSESSID
- php_admin_value[open_basedir] = "${basedir}:/tmp"
+ php_admin_value[open_basedir] = "/run/wrappers/bin/sendmail:${basedir}:/tmp"
php_value[max_execution_time] = 300
'';
};