How to stop "Open relay" function on smtp server - email

I am seeing the via centsol.com in some one's mail who has no access to centsol smtp server. I googled it and found that this issue is related to "Open relay" function of smtp. So my question is how to resolve this issue?

Well it really depends on what system you're using for sending mail.
Exchange Server: http://www.techrepublic.com/article/prevent-open-relays-on-exchange-server/
If you're using postfix or something else, the fix could be a lot more complicated than that.

Related

How to configure a sendmail to relay email from and to a mail server

I've a full server with mail and web behind a dynamic IP access.
This is all configured to update the ip in case it changes and works well with everything except mail.
Although I've implemented SPF DKIM and DMARK, since the address are listed in PBL, many servers refuse the connection.
I'm trying to solve this issue setting up a relay machine for my domains in a small VPS with Fixed IP and Reverse DNS to avoid PBL's.
I've found a link from a guy that implemented a similar solution, but he changes the sendmail.cf file, that is not supposed to be touched.
This link:
https://www.akadia.com/services/sendmail_relay.html
How can I do this in the sendmail.mc file for compilation with m4?
My idea is to set the mx records pointing to this vps acting as relay, and also configure my postfix mailserver to forward mail to the relay, which I think I've found were to do this in webmin.
Hope someone can shed some light in my head.
Thanks in advance.
You can specify default relay for outgoing email in sendmail.mc file using SMART_HOST.
define(`SMART_HOST', `name.of.smart.host')dnl
Useful tip: You may put smart host name in square brackets to avoid lookup for DNS MX records.
define(`SMART_HOST', `[name.of.smart.host]')dnl
WARNING
sendmail uses *.cf files as configuration. *.mc fIle must be "compiled" into *.cf file.

Postfix - How to accept mail where DNS is not configured properly

I have a Postfix/Dovecot server that is currently rejecting mail where DNS is not configured properly. The sender is getting:
550 5.7.1 Client host rejected: cannot find your hostname
I'm well-aware of the 'spammy' implications, but can someone point me to a resource on where I could figure out how to disable this setting?
I can't seem to locate how to turn it off, and maybe some of you great people here will have an idea.
Thanks
I think I found it. This seems to be the setting I'm looking for:
http://www.postfix.org/postconf.5.html#reject_unknown_client_hostname
disable 'reject_unknown_client_hostname' within /etc/postix/main.cf

Symfony2 Swift Mailer connection time extremely long - Debug options?

I'm using Symfony 2.1 and SwiftMailer to send out registration e-mails.
The process handling for this takes abouts 20 seconds if there's an email to be send. Meanwhile the website is loading. This might give users the impression that something went wrong.
I'm connecting using SMTP.
I have a similar Symfony2 Installation which connects to the same mail server, also using SMTP and there an email is send immediately.
Is there a way using XDEBUG or something else to see what is causing the delay?
I think this was a slow DNS lookup problem.
In parameters.yml I've changed the SMTP host from the domain name to 127.0.0.1 and it works perfectly now.

What DNS MX setting should I use to control incoming mail from Plesk?

I have a 1&1 VPS with Plesk, and a domain name with 123-Reg. I've configured my DNS records as such:
www a 87.106.101.240
mail a 87.106.101.240
mail.limehousecraftsandgifts.com. mx 10
From within Plesk, on the limehousecraftsandgifts.com domain, I've got a mail redirect for all email to go to my Gmail. But the emails are not getting through.
Does anyone know what I'm doing wrong? 87.106.101.240 is my server.
Thanks,
Steven
For one thing, you don't have an A RECORD for mail.limehouecraftsandgifts.com =)
You should point it where-ever you want the mail delivered.
Thanks to Shad, I was able to investigate and realise that my DNS settings were correct. I was having a problem with Qmail on my VPS. The command line for Qmail said it was running fine, but the Plesk control panel would allow the service to start, but would then stop 20 seconds later. Ultimately, the problem was a misconfigured Qmail. So check your mail logs, and your Qmail status if you're having this problem.
I'm leaving this here as a note to anyone encountering similar issues.

Skpsmtpmessage: which server should i use for gmail

I got this project "skpsmtpmessage" and I tried to send mail first. So I changed all the mail id to gmail id. But replay host is problem. I tried smtp.gmail.com, smtp.google.com, smtp.googletalk.com. But when I run my program, I get error that "Unable to connect server"
Which relay host should I use for gmail.
The correct SMTP server for Gmail is smtp.gmail.com, but I don't know how to help you further, the question is pretty vague.
You can also take a look at the configuration instructions for using Gmail on the iPhone to see if you're making a mistake with another parameter.