Skip to main content

Setting up SPF Records

SPF records are used to help ensure that no one sends emails claiming to be from you when they are not (called spoofing).   The receiving mail server checks the SPF record for the domain sending the mail.   The SPF record identifies all the valid servers that can send mail for that domain.   If the mail is from a server not listed, then the mail is rejected.   If there is no SPF record for a domain, then there is no check.

To create an SPF record you must add a TXT recrod to your DNS.   In your DNS text record, the first field should be:
YourDomainName.com.
note - the trailing period is required

The value field should be:
"v=spf1 a mx ~all"
note - the quotation markes are required

So your SPF record in your DNS looks like this:
YourDomainName.com. IN TXT "v=spf1 a mx ~all"

This SPF record means that only your web server (a) and your mail (MX) server can send mail for YourDomainName.com

Please understand that this will only work if ALL your mail is sent from your webhost using the same IP address as specified.   There is NO practical solution for an SPF record if your mail is sent through your ISP, since you have no way to anticiapte what servers your ISP will use to send mail and/or whether they have appropriate SPF records to reference.   For example, look for SPF records for rr.com or bellsouth.net and you will not find any.   So using the SPF include: option for the ISP name is worthless, since there are no SPF records to include.   Using either the ptr: or ip4: option MAY work depending on the servers used.

And if you are on shared host that sends mail from a different IP address than your domain IP address (a and mx), you must specify that server in your SPF record (you could use the ip4: option to specify the IP address).

Display your email message count
This simple script creates an image that can be used on any page to display the number of email maeesages in your inbox.  You could even put this on your desktop if you use an html page for your background image.  In your html, put an <img> tag for the image, such as the one below. Do not put width or height parameters in the img tag as this will distort the generated image.

<img src="http://yourdomain.com/messages.php" style="border: inset 3px;">
Name the script below messages.php.

- - Start Script Here - -
<?php
$server 
"mail.yourdomain.com";$user "XXXXXX";$password "YYYYYY";$host "{".$server.":143"."}"."INBOX";$msgstream imap_open($host$user$password);$check imap_mailboxmsginfo($msgstream);$count $check->Nmsgs;imap_close($msgstream);// generate display image$width = (strlen($count)*8)+8;$im = @imagecreate($width18);$background_color imagecolorallocate($im,255,255,255);$text_color imagecolorallocate($im,0,0,0);imagestring($im,4,4,2,$count,$text_color);imagepng($im);imagedestroy($im);?>

- - End Script Here - -



If you are using a PHP page and want to include the count in a text line rather than display it as an image, you can simply replace the bottom half of the script with this one line:

echo "You have $count messages in your inbox";

Comments

Popular posts from this blog

links

0.  https://michael67654.qowap.com/64523001/new-pos-technique-to-perk-up-your-company 1.  https://johnnydinqr.blog2learn.com/52856602/new-pos-system-to-perk-up-your-company 2.  http://edwinsqgcu.onesmablog.com/New-POS-Process-to-Perk-Up-Your-company-43309737 3.  http://chloe69246.bloguetechno.com/New-POS-Process-to-Perk-Up-Your-Business-39814721 4.  http://jacob87541.pointblog.net/New-POS-Technique-to-Perk-Up-Your-online-business-43741223 5.  http://arlette53302.thezenweb.com/New-POS-System-to-Perk-Up-Your-online-business-41464611 6.  http://devinpixna.tinyblogging.com/New-POS-Program-to-Perk-Up-Your-online-business-46354577 7.  https://rylanevsom.blog5.net/46759651/new-pos-program-to-perk-up-your-small-business 8.  https://mariowoesh.affiliatblogger.com/56515206/new-pos-system-to-perk-up-your-organization 9.  https://liam66429.diowebhost.com/60164326/new-pos-procedure-to-perk-up-your-company 10.  https://henry19219.fitnell.com/4557...

Raisonnement, la résolution de problèmes

Les chercheurs ont d'abord développé des algorithmes mimétiques raisonnement humain étapes que les gens utilisent pour résoudre le casse-tête ou faire méthode d'exclusion logique. [2] Dans les années 1980 et 1990 fin, l'étude de la grippe aviaire a développé des méthodes de traitement de l'information incertaine ou incomplète, en utilisant des concepts de probabilité et de l'économie. [3] Pour ces problèmes, les algorithmes requis matériel assez puissant pour effectuer des calculs de géant - à subir « combinaisons d'explosion »: la quantité de mémoire et le temps de calcul peut devenir invisible prendre si la résolution d'un problème difficile. La plus haute priorité est l'algorithme de recherche pour résoudre le problème.  Les gens utilisent généralement les jugements rapides et intuitifs plutôt que pas de déduction que les chercheurs en IA d'origine peuvent simuler. [5] Amnesty International a progressé en utilisant la résolution de problèmes « c...

Tracking and Securing Downloads

If you want to report or track downloads from your website, try this script.   This script will send you an email every time you have a download.   The email will tell you what file was downloaded and who did the download.   You could change this script to keep counts (store them in flat file or MySQL) if you desire. The variable $directory is the directory where the download files are located.   If you want the script in the same directory as the files then use "./" as the directory (you must always have the slash). In your html page, use the following structure as your download link (where name.txt is the file name to download): <a href="download.php?file=name.txt">download</a> Then you use the following script (called download.php): - - Start Script Here - - <?php $emailaddress  =  "email@yourdomain.com" ; $filename  =  $_GET [ 'file' ]; $directory  =  "downloads/" ; $path  =  "$directory$filename" ; putenv (...