Use 587 port in config.inc On Tue, Dec 31, 2019 at 6:04 AM Angus McIntyre <an...@pobox.com> wrote:
> I'm still trying to set up an Ansible role for creating a qmailtoaster > install, and I've run into some issues with Roundcube and Squirrelmail > (Rainloop works fine). > > Following Eric's advice, I'm using local SMTP for submission, so the > Roundcube '/etc/roundcubemail/config.inc.php' file contains: > > $config['smtp_server'] = '127.0.0.1'; > $config['smtp_port'] = 25; > $config['smtp_user'] = ''; > $config['smtp_pass'] = ''; > > If I attempt to send, however, the message is rejected with: > > SMTP Error (554): Failed to add recipient "some...@somewhere.com" > (Refused. Sending to remote addresses (relaying) is not allowed.). > > My guess is that the fix needed here isn't in Roundcube's config, but > somewhere in qmail's: I need to convince qmail that it should accept > mail from Roundcube running locally. > > A line from '/var/log/qmail/smtp/current' reads: > > CHKUSER accepted sender: from <u...@mydomain.com::> remote > <mail.mydomain.com:unknown:127.0.0.1> rcpt <> : sender accepted > > The '/var/qmail/control/locals' file contains: > > localhost > s6.mydomain.com > mail.mydomain.com > > What have I forgotten to configure to make this work? > > I have similar issues with SquirrelMail, but I think that if I can get > Roundcube working then I ought to be able to figure out how to make > Squirrelmail work the same way. > > I also tried switching back to port 587, with 'tls://127.0.0.1' as the > server, and sending username and password -- but that gets me a > 'STARTTLS failed' error in the logs. According to > https://starttls-everywhere.org/, TLS is working correctly on my box, > but ¯\_(ツ)_/¯ ... > > Any suggestions would be welcome. Thank you. > > Angus > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com > For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com > > -- *Regards,Manikandan.C*