fix for X-Authentication-Warning - apache

i am getting some line of message in /var/spool/mail/ec2-user log file, when alert mail is not delivering to the user by using cronjob .
all emails sent from my amazon ec2 server via php programs such as windows live mail would have following header message
X-Authentication-Warning: ec2-user set sender to email using -f
i m getting this problem from recently only, at the beginning i didnot face this problem
i m using following windows live mail configuration
ini_set('SMTP', "smtp.live.com");
ini_set('smtp_port', "25");
ini_set('sendmail_from', "admin#mail.com");
ini_set('password',"password");
ini_set('Security','Enable TLS');

Related

Laravel spatie backup package showing error on server

When I call Artisan::call('backup:run'); in controller it's not working on server but it's working on localhost. On the server it's showing me this message:
Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
To the server I changed MAIL_MAILER smtp to sendmail in .env and mail.php and mail is sending without any issue.
I'm using laravel 8 version.

WHM Debug Email Sending Issue

I have a WHM server - with several PHP scripts on it that send off emails. It used to work until apparently just recently. Now, it seems to have stopped sending emails from those scripts.
Given that I know there's no problem with the scripts themselves, how would I go about debugging why they're no longer being sent?
Here's what I know so far:
PHP Scripts should be fine, nothing has changed on them
Server does not appear on any spam blacklists
Test email script does not generate any errors, nor is there anything hung up in the WHM queue
Nothing shows up in the gmail accounts (regular or spam boxes) for what's supposed to have been sent.
Any ideas?
WHM 60 Build 35, CentOS 6
Please try to follow the instructions bellow which could help you in debbuging your email issue(s):
1) - check if you server has a valid hostname like host.domain.tld and that hostname actually points to the server's ip address
2) - check if you have rDNS setup correctly for your server's ip address and the reverse DNS should match the hostname
3) - Use Mail Queue Manager from WHM (in the left search in WHM got o Email -> Mail Queue Manager) and see if there are any emails in the mail queue there
4) - Use Mail Troubleshooter from WHM ( Email -> Mail Troubleshooter) and see what happens when you try to send an email to a gmail address
5) - You could check the Exim server logs by logging in via ssh and do a tail -f /var/log/exim_mainlog
Most probably your emails are in the server's mail queue and for some reason they are not delivered

how to upload Files to Alfresco via Email?

I wanted to upload files via email in Alfresco.
I am using alfresco community 5.2
I have added inbound email properties in alfresco-global.properties file
and i have followed all the steps and
I sent an email as explained in below links
But I am not able to receive any files in my alfresco
I have referred the links
https://www.youtube.com/watch?v=p17GkHsLdmc
http://keytocontent.blogspot.in/2010/05/upload-files-to-alfresco-via-email.html
Steps I have followed
1. set the properties in global properties
email.inbound.enabled=true
email.server.enabled=true
email.server.port=25
email.server.domain=vikash-laptop.com
email.inbound.unknownUser=anonymous
email.server.allowed.senders=.*
created a user named as hello1
email id=> hello1#vikash-laptop.com
added this user into EMAIL_Contributors group
Created a site named as test site
created a folder in Document Library>>Dropoff and
applied aspect email aliasable
added alias properties as dropoff
so the my email address will be dropoff#vikash-laptop.com
tried to send email to dropoff#vikash-laptop.com
and hello1#vikash-laptop.com both
Still i am not receiving any files which i have attached in email.
How did you try and send an email to vikash-laptop.com? You need to make sure the host name you are specifying (vikash-laptop.com) is going to resolve to the IP address of your alfresco server (I assume running on your laptop).
You also need to make sure that your mail client will resolve that domain correctly and can connect to the alfresco server. For example, if you were going to try and send an email from gmail, that would have problems unless vikash-laptop.com was a registered domain so that the gmail servers could resolve it and access port 25 on that machine from the internet.
If you just want to do a simple test on your laptop without a mail client where alfresco is running you can just telnet to the alfresco host and try and connect to that port (google "test smtp telnet" for a lot of suggestions) and see that it is listening on port 25 as you configured it and that you can send test email.
I have downloaded smtp mail sender and it is working. and now i am able to receive email attachments in alfresco.

PHP mail() troubles Mac

I am trying to send an email from my mac using the php mail() function, but I cannot seem to get it to work. I can start sendmail from the terminal with no errors, and have edited my system's php.ini file found at /private/etc to set sendmail_path to /usr/sbin/sendmail -t -i and uncommented it. I created a simple php script:
<?php
mail("<my email address>", "Test", "This is a Test Message", "From:" . "<another of my email addresses>");
echo "Mail Sent\n";
?>
and I am running it from the terminal using php mail.php. It echoes "Mail Sent", however it seems that no email is being sent. It is getting lost somewhere, but I have no clue where. I have restarted Apache, double checked that sendmail is running, yet nothing works. Any ideas?
you can not send mail using "mail()" function from your localhost, for that you have to host your code on any hosting provider then you can send the mail from it
see this link for more information.
if you want to send mail from localhost then you go for specific API like, if you want to send mail using your gmail credential then try this php mailer

Send mail programmatically w/attachments is undeliverable

I am trying to send mail using vb.net from iis through a smart host (mailenable) and out through the internet. When I send mail without attachments it goes out just fine. When I send mail created the same way with an attachment the smart host gets an error sending the email.
"mailenable the remote server appears to have failed or to have rejected the contents of the message"
The smart host is correctly set up with reverse dns and MX records set up correctly. What am I missing?
Happens with .txt and .jpg files both - Attached using system.net.mail.attachment(inputstream, attachmentname, mimetype)
The remote server is rejecting it
the smarthost is making an attempt
Sending attachments to the remote server using outlook works fine
I would concentrate on this portion of the error:
"...rejected the contents of the message"
.. since you have confirmed that sending mail works fine without the attachment.
What time of attachment is it?
How are you attaching it?
Have you checked with the server admin (might be yourself) to see what types of files may be sent through that system?
Be aware that a lot of mail servers rejects email with attachments with files .exe, .bat, .cmd, etc (executables) and zip files containing any of this files.
Can you send the same message with a standard SMTP mail client? Alternatively, can you send the same message using your code via a different mail server (i.e., Google's Gmail IMAP server)?