Virtualmin and Joomla sending notification emails.

8 posts / 0 new
Last post
#1 Sun, 11/04/2018 - 09:50
wajdan

Virtualmin and Joomla sending notification emails.

I am really new to virtulmin always used cpanel so excuse me for not knowing or describing my problem in fluent english. since last 5 days I am trying to install my joomla website to a new VPS from Contabo and making it work completely with virtualmin, tried several distros, and ended up with grade a supported Debian 9.

everything else I ended up configuring myself, .htaccess issues and folder permissions upgrading php to 7.02 etc.

how ever my problem is with postfix, dovecot IMAP/POP3 and postfix. I did clean install with the commands mentioned on the download page. I am able to send and receive emails from "read user emails" to my hotmail account.

installed roundcube email it always says "unable to connect to storage server" enabled config for thunderbird and outlook but I am unable to connect outlook have no idea what host name for incoming and outgoing mail and port is. outlook says unable to search auto config. in my joomla, I tried sendmail, phpmail and smtp nothing works. in my php info file sendmail_path is set to "/usr/sbin/sendmail -t -i " also tried it in joomla still × Error Test mail could not be sent.

I have no idea why sendmail has -t -i and whats wrong with mail.mydomain.com host or what to do next. any help or guideline will be greatly appreciated.

Thanks and Regards.

Sun, 11/04/2018 - 17:18
Joe
Joe's picture

We need to see the /var/log/mail.log entries that happen when you try to send mail.

--

Check out the forum guidelines!

Sun, 11/04/2018 - 23:47
wajdan

I don't see mail.log but I see var/log/mail.err which shows following

Nov 4 15:03:58 hostname dovecot: imap(admestic): Error: file_dotlock_create(/var/mail/admestic) failed: Permission denied (euid=1000(admestic) egid=1000(admestic) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775) (set mail_privileged_group=mail) Nov 4 15:05:06 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:05:06 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 2 secs Nov 4 15:05:18 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:05:18 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 4 secs Nov 4 15:05:36 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:05:36 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 8 secs Nov 4 15:13:16 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:13:16 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 16 secs Nov 4 15:16:27 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:16:27 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 32 secs Nov 4 15:16:59 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:16:59 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs Nov 4 15:18:34 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:18:34 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 2 secs Nov 4 15:18:40 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:18:40 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 4 secs Nov 4 15:20:16 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:20:16 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 2 secs Nov 4 15:21:58 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:21:58 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 4 secs Nov 4 15:39:58 hostname dovecot: pop3-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:39:58 hostname dovecot: master: Error: service(pop3-login): command startup failed, throttling for 2 secs Nov 4 15:40:00 hostname dovecot: pop3-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 4 15:40:00 hostname dovecot: master: Error: service(pop3-login): command startup failed, throttling for 4 secs

I tried to add domain user to secondry groups mail and sasl bu still no luck, I think the log is for yesterday when I was trying to connect outlook I don't see any entry when I try to send email from joomla test email form.

Trying to find way into the world of linux. https://www.admestic.com

Sun, 11/04/2018 - 23:59
wajdan

ok here is var/log/mail.log

Nov 5 06:52:17 hostname postfix/smtpd[14266]: warning: hostname host-63-net-119-160-119.mobilinkinfinity.net.pk does not resolve to address 119.160.119.63: Name or service not known Nov 5 06:52:17 hostname postfix/smtpd[14266]: connect from unknown[119.160.119.63] Nov 5 06:52:17 hostname postfix/smtpd[14263]: lost connection after EHLO from unknown[119.160.119.63] Nov 5 06:52:17 hostname postfix/smtpd[14263]: disconnect from unknown[119.160.119.63] ehlo=1 commands=1 Nov 5 06:52:17 hostname postfix/smtpd[14264]: lost connection after EHLO from unknown[119.160.119.63] Nov 5 06:52:17 hostname postfix/smtpd[14264]: disconnect from unknown[119.160.119.63] ehlo=1 commands=1 Nov 5 06:52:17 hostname postfix/smtpd[14267]: lost connection after EHLO from unknown[119.160.119.63] Nov 5 06:52:17 hostname postfix/smtpd[14267]: disconnect from unknown[119.160.119.63] ehlo=1 commands=1 Nov 5 06:52:17 hostname postfix/smtpd[14268]: lost connection after STARTTLS from unknown[119.160.119.63] Nov 5 06:52:17 hostname postfix/smtpd[14268]: disconnect from unknown[119.160.119.63] ehlo=1 starttls=1 commands=2 Nov 5 06:52:17 hostname postfix/smtpd[14266]: lost connection after EHLO from unknown[119.160.119.63] Nov 5 06:52:17 hostname postfix/smtpd[14269]: lost connection after EHLO from unknown[119.160.119.63] Nov 5 06:52:17 hostname postfix/smtpd[14266]: disconnect from unknown[119.160.119.63] ehlo=1 commands=1 Nov 5 06:52:17 hostname postfix/smtpd[14269]: disconnect from unknown[119.160.119.63] ehlo=1 commands=1 Nov 5 06:52:17 vmi217324 postfix/smtpd[14264]: warning: hostname host-63-net-119-160-119.mobilinkinfinity.net.pk does not resolve to address 119.160.119.63: Name or service not known Nov 5 06:52:17 hostname postfix/smtpd[14264]: connect from unknown[119.160.119.63] Nov 5 06:52:18 hostname postfix/smtpd[14264]: lost connection after EHLO from unknown[119.160.119.63] Nov 5 06:52:18 hostname postfix/smtpd[14264]: disconnect from unknown[119.160.119.63] ehlo=1 commands=1 Nov 5 06:52:28 hostname dovecot: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no start line: Expecting: ANY PRIVATE KEY Nov 5 06:52:28 hostname dovecot: master: Error: service(imap-login): command startup failed, throttling for 60 secs

Trying to find way into the world of linux. https://www.admestic.com

Mon, 11/05/2018 - 02:38
wajdan

service dovecot status gives errors

Nov 04 15:05:18 hostname-changed.net dovecot[6998]: master: Error: service(imap-login): command startup failed, throttling for 4 secs Nov 04 15:05:36 hostname-changed.net dovecot[7001]: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no star Nov 04 15:05:36 hostname-changed.net dovecot[6998]: master: Error: service(imap-login): command startup failed, throttling for 8 secs Nov 04 15:13:16 hostname-changed.net dovecot[7001]: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no star Nov 04 15:13:16 hostname-changed.net dovecot[6998]: master: Error: service(imap-login): command startup failed, throttling for 16 secs Nov 04 15:16:27 hostname-changed.net dovecot[7001]: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no star Nov 04 15:16:27 hostname-changed.net dovecot[6998]: master: Error: service(imap-login): command startup failed, throttling for 32 secs Nov 04 15:16:59 hostname-changed.net dovecot[7001]: imap-login: Fatal: Couldn't parse private ssl_key: error:0909006C:PEM routines:get_name:no star Nov 04 15:16:59 hostname-changed.net dovecot[6998]: master: Error: service(imap-login): command startup failed, throttling for 60 secs Nov 04 15:17:54 hostname-changed.net dovecot[6998]: master: Warning: Killed with signal 15 (by pid=27488 uid=0 code=kill)

Trying to find way into the world of linux. https://www.admestic.com

Mon, 11/05/2018 - 05:21
wajdan

well it seems the above mentioned issue has been fixed by adding "smtp_host_lookup = native" in main.cf out look seems to be connecting to the server, but it's not downloading any emails stored on the server also it shows test email has been sent successfully but it doesn't show up in the inbox, when I try to send email from out look to my hotmail account I immediately receive: Your message did not reach some or all of the intended recipients.

Subject: hello test email Sent: 05/11/2018 03:17 PM

The following recipient(s) cannot be reached:

'myemail@hotmail.com' on 05/11/2018 03:17 PM 454 4.7.1 <myemail@hotmail.com>: Relay access denied

Trying to find way into the world of linux. https://www.admestic.com

Mon, 11/05/2018 - 05:39
wajdan

UPDATE: it is downloading emails but isse relay restriction is same even tried the fix mentioned in this post :https://www.virtualmin.com/node/57907

mail log: Nov 5 12:33:29 hostname postfix/smtpd[6168]: NOQUEUE: reject: RCPT from unknown[119.160..63]: 454 4.7.1 myaccount@hotmail.com: Relay access denied; from=email@domainc.net to=myaccount@hotmail.com proto=ESMTP helo= Nov 5 12:33:32 hostname postfix/smtpd[6168]: disconnect from unknown[119.160..63] helo=1 ehlo=1 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6

Trying to find way into the world of linux. https://www.admestic.com

Mon, 11/05/2018 - 08:49
wajdan

Solved: Just needed to check my server requires authentication in outlook under account and settings > more settings under outgoing checked "My outgoing server (SMTP) requires authentication" while radio button

Trying to find way into the world of linux. https://www.admestic.com