I want to create a SMTP validation on registration at my website, but I got a strange behavior on GMail SMTP servers.
The validation looks like sending emails: after establishing connection with SMTP server I send commands EHLO, HELO, MAIL FROM, RCPT TO and QUIT.
Commands like HELO and MAIL FROM not take many time, but command RCPT TO can take about 3 seconds on GMail. For example, on several others servers this command takes only 200-300ms.
Also, if I check an existing email address, RCTP command takes only 600-900ms, but this delay always takes more then 3 seconds for unexisting address.
I think, this delay is an antispam behavior, but how I can bypass it?
My domain already has correct TXT-SPF and SPF records. My server not listed in any spam lists.
I'm not seeing the delay that you're reporting after RCPT TO. I run a mail server that logs the transcript with the remote MTA for every delivery. Looking at a few recent deliveries to gmail addresses, I see that the server for gmail responded with a 250 OK almost immediately after RCPT TO from my side. See below. (email addresses and IP's anonymized to protect the innocent!).
Tue Jul 23 16:01:52 2013 GMT DNS MX record lookup for gmail.com:
Tue Jul 23 16:01:52 2013 GMT MX1=gmail-smtp-in.l.google.com, MX2=alt1.gmail-smtp-in.l.google.com, MX3=alt2.gmail-smtp-in.l.google.com
Tue Jul 23 16:01:52 2013 GMT Attempting SMTP connection from smtp.myserver.com [x.x.x.x] to gmail-smtp-in.l.google.com [173.194.64.27] on port 25
Tue Jul 23 16:01:52 2013 GMT Delivery id 813435, process id 21352
Tue Jul 23 16:01:52 2013 GMT received from remotehost: 220 mx.google.com ESMTP b5si18818338obh.145 - gsmtp
Tue Jul 23 16:01:52 2013 GMT smtp.myserver.com sent: EHLO smtp.myserver.com
Tue Jul 23 16:01:52 2013 GMT received from remotehost: 250-mx.google.com at your service, [x.x.x.x]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250 PIPELINING
Tue Jul 23 16:01:52 2013 GMT smtp.myserver.com sent: STARTTLS
Tue Jul 23 16:01:52 2013 GMT received from remotehost: 220 2.0.0 Ready to start TLS
Tue Jul 23 16:01:52 2013 GMT starting TLS...
Tue Jul 23 16:01:52 2013 GMT TLS Enabled.
Tue Jul 23 16:01:52 2013 GMT smtp.myserver.com sent: EHLO smtp.myserver.com
Tue Jul 23 16:01:52 2013 GMT received from remotehost: 250-mx.google.com at your service, [x.x.x.x]
250-SIZE 35882577
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 PIPELINING
Tue Jul 23 16:01:52 2013 GMT smtp.myserver.com sent: MAIL FROM: <sender#sender.com>
Tue Jul 23 16:01:52 2013 GMT received from remotehost: 250 2.1.0 OK b5si18818338obh.145 - gsmtp
Tue Jul 23 16:01:52 2013 GMT smtp.myserver.com sent: RCPT TO: <recipient#gmail.com>
Tue Jul 23 16:01:52 2013 GMT received from remotehost: 250 2.1.5 OK b5si18818338obh.145 - gsmtp
Tue Jul 23 16:01:52 2013 GMT smtp.myserver.com sent: DATA
Tue Jul 23 16:01:52 2013 GMT received from remotehost: 354 Go ahead b5si18818338obh.145 - gsmtp
Tue Jul 23 16:01:52 2013 GMT [sending message...] (14871 bytes)
Tue Jul 23 16:01:52 2013 GMT [message sent]
Tue Jul 23 16:01:53 2013 GMT received from remotehost: 250 2.0.0 OK 1374595312 b5si18818338obh.145 - gsmtp
Related
Everything was working fine, but now I get error in browser while visiting my websites "error establishing database connection". Error gets solved after restarting xampp, and what I observe every time that mysql module of xampp stops running.
Few months ago this error was coming every 15 days, and I always solved this issue by restarting xampp, but now it occurs very frequently(everyday or in 2 days).
I also tried one solution "deleting the file ibdata1" that helped me for 3-4 days, and problem started again.
here is my error log:
[Mon Dec 05 14:36:21.001921 2016] [ssl:warn] [pid 7479] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Dec 05 14:36:21.001985 2016] [ssl:warn] [pid 7479] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 14:36:21.002084 2016] [suexec:notice] [pid 7479] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Mon Dec 05 14:36:21.050579 2016] [auth_digest:notice] [pid 7480] AH01757: generating secret for digest authentication ...
[Mon Dec 05 14:36:22.001567 2016] [ssl:warn] [pid 7480] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Dec 05 14:36:22.001605 2016] [ssl:warn] [pid 7480] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 05 14:36:22.001713 2016] [lbmethod_heartbeat:notice] [pid 7480] AH02282: No slotmem from mod_heartmonitor
[Mon Dec 05 14:36:22.019204 2016] [mpm_prefork:notice] [pid 7480] AH00163: Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.5.15 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Mon Dec 05 14:36:22.019244 2016] [core:notice] [pid 7480] AH00094: Command line: '/opt/lampp/bin/httpd -E /opt/lampp/logs/error_log -D SSL -D PHP'
[Tue Dec 06 05:25:35.571290 2016] [mpm_prefork:notice] [pid 7480] AH00169: caught SIGTERM, shutting down
It is big problem to me as well as visitors of my websites.
Please guys, If any one of you know how to solve this issue, do reply.
Thanks in advance !!
I got the same error on my website.
In my case it was the cron upgrade proces which gave an MySQL error. After fixing this no restarts where needed anymore.
I have a site hosted on OpenShift. Every so often, maybe once every two weeks, the server appears to randomly shut down the site. I get a 503 error on the page and the server log says:
DEBUG: Sending SIGTERM to child...
Thu Aug 06 2015 11:27:21 GMT-0400 (EDT): Received SIGTERM - terminating sample app ...
Thu Aug 06 2015 11:27:21 GMT-0400 (EDT): Node server stopped.
==> app-root/logs/mongodb.log <==
Thu Aug 6 11:27:19.208 [signalProcessingThread] shutdown: going to close sockets...
Thu Aug 6 11:27:19.208 [signalProcessingThread] shutdown: waiting for fs preallocator...
Thu Aug 6 11:27:19.208 [signalProcessingThread] shutdown: lock for final commit...
Thu Aug 6 11:27:19.208 [signalProcessingThread] shutdown: final commit...
Thu Aug 6 11:27:19.212 [signalProcessingThread] shutdown: closing all files...
Thu Aug 6 11:27:19.213 [signalProcessingThread] closeAllFiles() finished
Thu Aug 6 11:27:19.215 [signalProcessingThread] journalCleanup...
Thu Aug 6 11:27:19.215 [signalProcessingThread] removeJournalFiles
Thu Aug 6 11:27:19.269 [signalProcessingThread] shutdown: removing fs lock...
Thu Aug 6 11:27:19.314 dbexit: really exiting now
I can restart the app and it works fine again for a while but I would prefer to find the source of the issue and solve it. The error doesn't mean much to me. Where should I start looking for the origin of the SIGTERM?
I'm trying to debug a Server Error 500 with my application. I've read that you should use rhc tail to show a live log stream and with the current error, the log stream that appears when trying to display the page is:
==> app-root/logs/python.log <==
79.24.253.62 - - [01/Jan/2015:08:32:17 -0500] "GET /url/ HTTP/1.1" 500 27 "http://a-b.rhcloud.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
The error shown is:
Other pages work, this error only appears on certain "more advanced" pages (eg. static pages show correctly). The rest of the log, is:
==> app-root/logs/python.log <==
[Thu Jan 01 08:30:43 2015] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c6,c654
[Thu Jan 01 08:30:43 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 01 08:30:43 2015] [notice] Digest: done
[Thu Jan 01 08:30:43 2015] [notice] Apache/2.2.15 (Unix) mod_wsgi/3.4 Python/3.3.2 configured -- resuming normal operations
and:
==> app-root/logs/postgresql.log <==
2015-01-01 13:30:25 GMT LOG: shutting down
2015-01-01 13:30:25 GMT LOG: database system is shut down
2015-01-01 13:30:31 GMT LOG: could not bind socket for statistics collector: Permission denied
2015-01-01 13:30:31 GMT LOG: trying another address for the statistics collector
2015-01-01 13:30:31 GMT LOG: could not bind socket for statistics collector: Cannot assign requested address
2015-01-01 13:30:31 GMT LOG: disabling statistics collector for lack of working socket
2015-01-01 13:30:31 GMT WARNING: autovacuum not started because of misconfiguration
2015-01-01 13:30:31 GMT HINT: Enable the "track_counts" option.
2015-01-01 13:30:31 GMT LOG: database system was shut down at 2015-01-01 13:30:25 GMT
2015-01-01 13:30:31 GMT LOG: database system is ready to accept connections
What is the next step to debug this problem?
I added the following Django logging configuration which gave me the details of the 500 errors in a file django.log. I set LOG_DIR = os.environ.get('OPENSHIFT_LOG_DIR')
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'WARNING',
'class': 'logging.FileHandler',
'filename': os.path.join(LOG_DIR, 'django.log'),
},
},
'loggers': {
'django.request': {
'handlers': ['file'],
'level': 'WARNING',
'propagate': True,
},
},
}
GWAN error on Centos 7 version
I tried both version 64 bit and 32 bit version , I am using latest version from GWAN site.
Any help would be appreciated.
[Fri Nov 21 18:02:32 2014 GMT] user: root (uid:0), group: root (uid:0)
[Fri Nov 21 18:02:32 2014 GMT] system fd_max: 110,032
[Fri Nov 21 18:02:32 2014 GMT] program fd_max: 110,032
[Fri Nov 21 18:02:32 2014 GMT] updated fd_max: 500,000
[Fri Nov 21 18:02:32 2014 GMT] Available network interfaces (2):
[Fri Nov 21 18:02:32 2014 GMT] 127.0.0.1
[Fri Nov 21 18:02:32 2014 GMT] 10.21.150.98
[Fri Nov 21 18:02:32 2014 GMT] * no listener in /opt/gwan_linux32-bit
[Fri Nov 21 18:17:57 2014 GMT] ------------------------------------------------
[Fri Nov 21 18:17:57 2014 GMT] G-WAN 4.3.14 32-bit (Mar 14 2013 07:34:53)
[Fri Nov 21 18:17:57 2014 GMT] ------------------------------------------------
[Fri Nov 21 18:17:57 2014 GMT] Local Time: Fri, 21 Nov 2014 13:17:57 GMT-5
[Fri Nov 21 18:17:57 2014 GMT] RAM: (1.11 GiB free + 0 shared + 0 buffers) / 3.53 GiB total
[Fri Nov 21 18:17:57 2014 GMT] Physical Pages: 1.11 GiB / 3.53 GiB
[Fri Nov 21 18:17:57 2014 GMT] DISK: 19.14 GiB free / 19.55 GiB total
The problem is described in your log file:
no listener in /opt/gwan_linux32-bit
This is likely to be a file permission issue. Also, try to rename this folder as gwan32 as old versions had trouble with names matching the naming patterns used by listeners.
Note: the version you are using is quite old: G-WAN 4.3.14 (March 14 2013), registered users have access to far more recent releases that add features and patches for system (OS versions, LIBC versions, Hypervisors...) incompatibilities.
From the sunstone GUI I tried performing a live migration from luther to blackout but the migration failed. Kindly see below excerpt from oned.log. Thanks for assistance and leads in advance.
Wed Feb 12 13:15:34 2014 [VMM][I]: Successfully execute transfer manager driver operation: tm_premigrate.
Wed Feb 12 13:15:34 2014 [VMM][I]: ExitCode: 0
Wed Feb 12 13:15:34 2014 [VMM][I]: Successfully execute network driver operation: pre.
Wed Feb 12 13:15:35 2014 [VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/migrate 'one-4' 'blackout' 'luther' 4 luther
Wed Feb 12 13:15:35 2014 [VMM][E]: migrate: Command "virsh --connect qemu:///system migrate --live one-4 qemu+ssh://blackout/system" failed: error: unable to connect to server at 'blackout:49152': No route to host
Wed Feb 12 13:15:35 2014 [VMM][E]: Could not migrate one-4 to blackout
Wed Feb 12 13:15:35 2014 [VMM][I]: ExitCode: 1
Wed Feb 12 13:15:35 2014 [VMM][I]: Failed to execute virtualization driver operation: migrate.
Wed Feb 12 13:15:35 2014 [VMM][E]: Error live migrating VM: Could not migrate one-4 to blackout
Wed Feb 12 13:15:35 2014 [LCM][I]: Fail to live migrate VM. Assuming that the VM is still RUNNING (will poll VM).
Wed Feb 12 13:56:36 2014 [LCM][I]: New VM state is SAVE_STOP
Wed Feb 12 13:56:44 2014 [VMM][I]: ExitCode: 0
iptables was the culprit. Simple turn of iptables or add libvirt default port ranges