LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2015, 10:33 AM   #1
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
php slow mail function


I have a friendica setup on a VPS, 512MB ram.

Nearly everything is quick, except for registering, adding friends and resetting a lost password.
When I do any one of those, it takes a minute to do (almost exactly 60 seconds)

I'm monitoring memory and it was sitting at 46 so I don't believe it's a hindrance.
Is there anything I can do to speed this up or identify what is acting as the bottleneck?

Edit: It occurred to me that each of these send out emails. After attempting to send out a email I got this message in /var/log:

Code:
Jul 30 11:46:55 foobar sendmail[9250]: My unqualified host name (foobar) unknown; sleeping for retry
Jul 30 11:47:55 foobar sendmail[9250]: unable to qualify my own domain name (foobar) -- using short name
It's exactly a minute later. I guess its the mail function being slow.

Last edited by Sefyir; 07-30-2015 at 11:07 AM.
 
Old 07-30-2015, 11:04 AM   #2
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Original Poster
Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
My VPS had set my FQDN to my example foobar in /etc/hosts
I corrected this to the correct domain name (www.foobar.com) and it works perfectly now!
Code:
from 
123.321.34.5 foobar
to
123.321.34.5 www.foobar.com
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] friendica on it carlitoco Slackware 4 11-01-2013 03:54 PM
[SOLVED] Friendica setup issue vatin Linux - Server 0 06-23-2013 09:44 PM
DBI Connect Failed:Access denied for user ''@'localhost' to database <database> error kaplan71 Linux - Software 3 06-05-2009 12:39 PM
How to access database created with MS Access on Windows using PHP on Linux Server anjani.78 Linux - Software 1 12-21-2005 06:07 PM
RPM Database is very slow garamatt Linux - General 4 10-11-2003 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration