I am new to James Mail Server. I configured as the steps mentioned by James.
I can send send mails to internal network, but I am not able to send mails to external network like gmail.
Somebody please help me to resolve the issue
Thanks in advance
Rohith
Sorry for the late but it may help some people in the future.
If you want configure JAMES to send mails to external network you must edit the file conf.xml in the ${JAMES_DIR}/apps/james/SAR-INF.
Uncommented these line to define an SMTP relay server if necessary through the gateway:
<processor name="transport">
<mailet match="All" class="RemoteDelivery">
...
<gateway> smtp.gmail.com </gateway>
<gatewayPort>25</gatewayPort>
</mailet>
</processor>
Example to use the gmail relay server:
POP Server: pop.gmail.com (on activation of the POP option of GMail)
SMTP Server: smtp.gmail.com
IMAP Server: imap.gmail.com
EDIT: gmail requires an authentication so you must set the gatewayusername and the gatewayPassword markups:
<gatewayusername>login</gatewayusername>
<gatewayPassword>pass</gatewayPassword>
See http://mail.google.com/support/bin/answer.py?answer=10350
Related
I am having username and password for a email account, but not smtp host name and port number,
I am using nodemailer.
Is it possible to send mail using only the username and password for the email account.
Edit: don't tell me to close, I have this doubt, If you know the answer tell me, this is not the silly thing, In my office they told me use only username and password. I searched online for it but did not got any idea.
You would always need smtp server details all the time along with username and password. And completely depends on smtp server how it handles the smtp details.
Few examples of smtp servers -
smtp.gmail.com
smtp.sendgrid.com
smtp.zoho.com
smtp.dreamhost.com
NodeMailer provides support for transports other than SMTP. You can check the link https://nodemailer.com/transports/. Looking in the documentation, it doesn't need SMTP server for these transports, you can give it a try.
In built support is there for below tansport.
sendmail – for piping messages to the sendmail command
SES – is a Nodemailer wrapper around aws-sdk to send mail using AWS SES
stream – is just for returning messages, most probably for testing
I want to email for client in my project when i try to mail the client it shows the following error (Connection could not be established with host smtp.gmail.com [Unable to find the socket transport "tlsl" - did you forget to enable it when you configured PHP? #178257984]) i google it but not found any solution any body help thank in advance.
this is my .env file
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=test#gmail.com
MAIL_PASSWORD=*******
MAIL_ENCRYPTION=tls
Problem must be related cahced config, Can you try again send email after clear config,
php artisan config:cache
I hope this will help
Pay attention when you use gmail as smtp server. It has 2 ports: 465 and 587. If you choose 587, you need to use ssl like encryption, and if you choose 465, use tls. After that, you need to configure your gmail account to allow less secure apps: https://support.google.com/accounts/answer/6010255.
Don't forget restart your laravel server each time your update your .env config file.
I've configured Webmail in Cpanel, and enabled SPF and DKIM, but still the mails are going to spam in gmail. Yahoo is receiving the mails in inbox. My Domain and IP are not blacklisted. Please let me know if anyone knows the solution.
Nerdy Bird here! Have you by any chance tailed any of the exim error logs?
Try this:
Assuming you have root access to the server, ssh into the server as Root, the run the line below (NOTE: username is the beginning of the email address 'john#somedomain.com'. So in the below example, you would replace username with john). This makes searching the logs much easier).
tail -f /var/log/exim_mainlog | grep -i username
Upon running the above line, send an email from your webmail account to another account (Gmail in this case). Once you've done that, output should display in the terminal. The output is the best insight into your mail issue.
Also, if you have command line access, try using telnet. If you can connect by running the following line, you can rule out issues with outgoing ports on the server.
FOR PORT 25:
telnet alt2.gmail-smtp.in.l.google.com 25
If you get a connected message, port 25 is open and able to send mail.
FOR PORT 26:
telnet alt2.gmail-smtp.in.l.google.com 26
If you get a connected message, port 26 is open and able to send mail.
Other Possible Issues
You could possible not have a RDNS (reverse dns record) setup for your server's/domain's IP address. If not, please consult with your Hosting provider to see that gets added and allow time for propagation.
Port mail is being sent on is by default port 25. Sometimes ISPs' block mail coming from port 25. Try changing this port to port 26. This is typically done via command line or in WHM (Webhost Manager). If you do not have access to WHM or CMD, contact your hosting provider.
Although you stated your IP is not blacklisted, please check again. We use MXtoolbox.com
Hope this helps. Need more let us know.
Nerdy Bird
In my case, I tried a whole lot of things but at the end, I verified my site in https://www.google.com/webmasters and added it as a property after which email from my webmail started going to Gmail inbox again instead of spam.
I want to send emails with my Node server. These are no-reply type emails, simply as reminders. The server will not need to handle incoming email. I know that there are services out there like Postmark, Mailchimp, etc. that will send emails for me, but I really do not want to pay for a service.
Using Nodemailer I have to specify a SMTP server. I can piggy back off of GMail or something but that's not desirable because the mail will not be coming from my domain (correct?).
But there is also node-sendmail which will send email without an SMTP server. Can someone describe the implications of sending email without an SMTP server? Dropped connections? No indication if message is undeliverable?
What are the implications of running my own SMTP server? Does it open up additional security holes? Can you recommend an open source SMTP server that requires minimal setup and maintenance?
Have a look at Haraka. It's an easy to use SMTP server that should do exactly what you're looking for. It's currently in use by Craigslist, so you know it's solid.
There's a section in the docs on how to set it up for sending mail - very last section 6.1.
I am trying to write a fake SMTP server in nodejs, I just need use it to send notify email, but not receive email.
I have taken a look at node-smtp, but it just implements the protocol from client to SMTP server, it does not implement how to send mail from a SMTP server to another SMTP server.
If I know how one SMTP server send mail to another SMTP server, I think I can send mail without a SMTP server.
but it just implements the protocol from client to SMTP server, it does not implement how to send mail from a SMTP server to another SMTP server.
An SMTP server that can send mail also acts as an SMTP client. Not that you're trying to write an SMTP server anyway:
I just need use it to send notify email, but not receive email.
aka
I just need to write an SMTP client
Well in short it works this way: server-sender reads domain of recipient and is checking DNS for MX record for that domain (you can read it like - "hey DNS tell me please which server holds mails for that domain). Then it connects to remote SMTP and gives the messaage.
The dialogue could look like this:
client: HELLO server
server: 250 hello client, nice to meet you
client: MAIL FROM: tmg
server: 250 ok
client: RCPT TO: guilin
server: 250 ok
client: data
server: 354 Enter message, ending with "." on a line by itself
client: From: tmg
client: To: guilin
client: Subject: just a mail
client:
client: message body
client: .
server: 250 ok
client: quit
server: good bye
Did you look at Marak's node_mailer?
https://github.com/Marak/node_mailer
I have a fork of it, and another one, on my github site, for gmail smtp support
http://github.com/deitch
I use https://github.com/andris9/simplesmtp, it is actually a framework for creating SMTP servers/clients, however it is quite a good fit for testing.
There is also https://github.com/deitch/smtp-tester specially designed for testing, however I haven't used it.