Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Confirmation email does not arrive
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2022-09-03 12:03:52
I am trying to configure the sending of emails to register but they do not arrive. In the config.php file everything is configured correctly...

//Gmail settings
//$site_config["mail_type"] = "pear";
//$site_config["mail_smtp_host"] = "smtp.gmail.com"; // SMTP server hostname
//$site_config["mail_smtp_port"] = "465"; // SMTP server port
//$site_config["mail_smtp_ssl"] = true; // true to use SSL
//$site_config["mail_smtp_auth"] = true; // true to use auth for SMTP
//$site_config["mail_smtp_user"] = "myaccount@gmail.com"; // SMTP username/gmail address
//$site_config["mail_smtp_pass"] = "mypassword"; // SMTP password


I have also tried using another account of a paid mail server without success...

$site_config["mail_type"] = "pear";
$site_config["mail_smtp_host"] = "smtp.mydomain.com"; // SMTP server hostname
$site_config["mail_smtp_port"] = "587"; // SMTP server port
$site_config["mail_smtp_ssl"] = true; // true to use SSL
$site_config["mail_smtp_auth"] = true; // true to use auth for SMTP
$site_config["mail_smtp_user"] = "account@mydomain.com"; // SMTP username
$site_config["mail_smtp_pass"] = "mypassword"; // SMTP password


And also with different combinations of using pear, php, with and without ssl.
What am I doing wrong?
2022-09-03 15:58:48
Try:
    https://torrenttrader.uk/post?id=10279

    https://torrenttrader.uk/post?id=10053


good luck


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-03 16:54:59
In the first thread many things are said, referring to opening ports but it does not explain the reason for the question.  Is it necessary to open any port?  Regarding the second thread, I already followed the steps before asking, but I really don't know if I have managed to install pear correctly, since the web server is hosted on a synology NAS and I have done the steps through ssh (without apparent errors) .  Is there any way to check that pear is working?
2022-09-03 17:49:03
when I installed pear, I did this. I use ubuntu
apt install php-pear
pear install mail
pear install Net_SMTP
pear install Auth_SASL2 <---- may not be needed, install only if something isnt working
pear install mail_mime

also, if using gmail, you will have to go to your gmail account and allow insecure apps to connect. Even after doing this, if you dont use it often, gmail will revert back to the secure setting.
You dont need to open any ports, just dont use port 25
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-09-03 17:53:46
2022-09-03 18:06:04
Having the web server installed on Synology DSM, I cannot install packages by command. But there is a package in the store called PHP Pear, which is supposed to have all of that.
The method to activate insecure applications in the Gmail account is no longer possible for a few months, google has disabled it. I am also testing with my mail server account that has no restrictions.
It still doesn't work, I've added the code snippet in account-singup.php and config.php and installed PHP pear from the Synology store.
2022-09-05 17:59:07
Try this metode:

How to configure Postfix relay


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-07 10:05:28
I have gone to test in ubuntu, I have followed all the steps to install PEAR but I still do not receive the message. I have noticed that when I hit the "singup" button, the attached image error appears for a moment, and then the message that the email has been sent correctly appears.

On the other hand, to test the POSTFIX relay, when I do all the steps, how do I tell the config.php file to use POSTFIX? method=php?
error1.jpg
File missing
2022-09-07 10:43:59
config.php settings:

// Mail settings
// php to use PHP's built-in mail function. or pear to use http://pear.php.net/Mail
// MUST use pear for SMTP
$site_config["mail_type"] = "pear"; //Use PEAR for Gmail, otherwise, use PHP
$site_config["mail_smtp_host"] = "smtp.gmail.com"; // SMTP server hostname. Google Gmail is smtp.gmail.com
$site_config["mail_smtp_port"] = "587"; // SMTP server port. Google Gmail uses 465
$site_config["mail_smtp_ssl"] = true; // true to use SSL. True for Google Gmail
$site_config["mail_smtp_auth"] = true; // true to use auth for SMTP. True for Google Gmail
$site_config["mail_smtp_user"] = "your@gmail.com"; // SMTP username
$site_config["mail_smtp_pass"] = "your_password"; // SMTP password


postfix main.cf

# Vacation Scripts
vacation_destination_recipient_limit = 1
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql-virtual_vacation.cf
tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map

# G-mail config
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
# Secure channel TLS with exact nexthop name match.
smtp_tls_security_level = secure
smtp_tls_mandatory_protocols = TLSv1
smtp_tls_mandatory_ciphers = high
smtp_tls_secure_cert_match = nexthop
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
relayhost = smtp.gmail.com:587


sasl_password:

Run:
sudo postmap /etc/postfix/sasl_passwd

smtp.gmail.com    your@gmail.com:password_from_gmail_verification


PS==>  IMPORTANT:

sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
sudo chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db


Run:
yum install cyrus-sasl-plain

*Don’t forget to save and restart postfix before testing changes.


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-07 10:46:43
What is on:

https://your-site.com/admincp.php?action=sqlerr


?????


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-09 07:23:04
I have followed all the steps, and now the database error no longer appears, but the page loads for about 20 seconds and it appears that the mail has been sent correctly. But I still don't get anything.

from the url the errors of the attached image appear.
error.jpg
File missing
2022-09-12 21:24:17
"doesn't have a default value"  is problem in your MySQL server strict mode.
View in your phpmyadmin menu Variables and then scroll down to sql mode and change to NO_ENGINE_SUBSTITUTION

2022-09-17 15:44:12
I got it!! In the end I didn't have to install the relay. The problem was in the mail server authentication method, and I had to modify a line following this tutorial  https://github.com/pear/Net_SMTP/issues/68
But now I have one last question, I have seen that the emails are sent, but the accounts are pending activation by the administrator. I have seen that this can be removed from the config.php file but... how can I make the user confirm their email from the link that arrives in the email?
Last edited by MicroMonkey on 2022-09-26 20:13:10
2022-09-18 16:33:34
how did you do it?
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2022-09-18 16:40:58
In the end I have installed it in a synology in my house.  I had to manually install pear as well as the necessary packages.  Then I had to modify the file that I have put before to make it work on my mail server.  But now that I realize... This is only for a welcome email to arrive.  I need the account to be activated from an email that arrives.  This is not possible?
2022-09-18 20:05:34
that setting should be here
$site_config['MEMBERSONLY'] = true;							//MAKE MEMBERS SIGNUP
$site_config['MEMBERSONLY_WAIT'] = false; //ENABLE WAIT TIMES FOR BAD RATIO
$site_config['ALLOWEXTERNAL'] = true; //Enable Uploading of external tracked torrents
$site_config['UPLOADERSONLY'] = false; //Limit uploading to uploader group only
$site_config['INVITEONLY'] = false; //Only allow signups via invite
$site_config['ENABLEINVITES'] = true; // Enable invites regardless of INVITEONLY setting
$site_config['CONFIRMEMAIL'] = true; //Enable / Disable Signup confirmation email
$site_config['ACONFIRM'] = true;       //false for email activation

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728