SMTP Authentication (SASL on Postfix)
I am migrating my personal mail server from Tiger Server to Snow Leopard Server.
I have had Postfix on the Tiger Server working for years. I am having trouble configuring Snow Leopard to do the same. My set up for SMTP is to relay email from my respective Postfix server to my ISP, mail.speakeasy.net, and then authenticate with my speakeasy name/password. As I use SSL, I come in on port 995.
From Postfix's perspective, this involves configuring SASL.
Here are the relevant SASL configuration lines from postfix.conf
smtpsasl_authenable = yes
smtpsasl_passwordmaps = hash:/etc/postfix/sasl/passwd
smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated rejectrblclient zen.spamhaus.org rejectrblclient bl.spamcop.net permit
smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
smtpdsasl_authenable = yes
When I attempt to relay through mail.speakeasy.net, here are the log file entries in my Snow Leopard SMTP Log files:
Oct 22 17:26:38 tin postfix/smtp[98906]: warning: SASL authentication failure: No worthy mechs found
Oct 22 17:26:38 tin postfix/smtp[98906]: D6EC5500F2: to=<[email protected]>, relay=mail.speakeasy.net[69.12.123.12]:25, delay=0.29, delays=0/0/0.28/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server mail.speakeasy.net[69.12.123.12]: no mechanism available)
Any advice would be appreciated.
Thanks,
combining prarie-guy and kevin mck posts, heres what worked on my snow leopard 10.6.2 box:
error was:
Jan 6 17:05:10 cavell postfix/smtp[36921]: warning: SASL authentication failure: No worthy mechs found
Jan 6 17:05:10 cavell postfix/smtp[36921]: 08A7856920: to=<[email protected]>, relay=mail.telushosting.com[216.251.32.97]:25, delay=1.2, delays=0/0.01/1.2/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server mail.telushosting.com[216.251.32.97]: no mechanism available)
to fix:
stop mail using server admin or cmd line
in terminal window, sudo -s -H
cd /etc/postfix
cp -p main.cf main.cf.orig
vi main.cf
check the following lines are set up as follows:
smtpsasl_authenable = yes
smtpsasl_securityoptions =
smtpsasl_passwordmaps = hash:/etc/postfix/sasl/passwd
smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated permit
smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
smtpdsasl_authenable = yes
restart mail.
Similar Messages
-
Mail service not requiring SMTP Authentication
hello everyone,
I have been trying to find an answer and could not. I want my mail server to require SMTP Authentication. I have "CRAM-MD5" and "Login" checked in Server Admin -> Computers & Services -> Mail -> Advanced -> Security. Still, I can set up a mail account with any name and domain and SMTP through my server. (It does require a password for POP, so at least no one can read others folks mail)
I have begun to notice that I get many returned mails that I never sent, from accounts that are not on my server. So, I am thinking that spammers are relaying or just using my server to spam. I would like that to stop.
I have changed the configurations with Server Admin, stopped service, started service, and even restarted the whole server. Still, mail will not require SMTP Authentication.
Can anyone help me do this with Terminal or manually?thanks, for any help in advance.
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = all
localrecipientmaps = proxy:unix:passwd.byname $alias_maps
luser_relay =
mail_owner = postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mapsrbldomains =
messagesizelimit = 52428800
mydestination = $myhostname,localhost.$mydomain,localhost,highlevelit.eu
mydomain = highlevelit.eu
mydomain_fallback = localhost
myhostname = mailx.highlevelit.eu
mynetworks = 127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpdclientrestrictions = permit_mynetworks permit
smtpdenforcetls = no
smtpdpw_server_securityoptions = login
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdtls_certfile = /etc/certificates/mailx.highlevelit.eu.crt
smtpdtls_keyfile = /etc/certificates/mailx.highlevelit.eu.key
smtpduse_pwserver = yes
smtpdusetls = yes
unknownlocal_recipient_rejectcode = 550
virtualmailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp -
SMTP AUTHENTICATION (URGENT)
hi all,
wel i have enabled the smtp authentication.I would really like to know that why the users sending mails from telnet are not required to enter the user name and password, as it can be a security threat ,
by the way i am using sun java messaging server 6.3
regardsadeelarifbhatti wrote:
wel i have enabled the smtp authentication.Given that SASL authentication is enabled by default, what precisely did you change to "enable" authentication?
I would really like to know that why the users sending mails from telnet are not required to enter the user name and passwordSASL authentication is enforced if the MTA channel which the user is connected to has "mustsaslserver" configured:
http://docs.sun.com/app/docs/doc/819-2650/6n4u4dtqk?a=view#bganv
Regards,
Shane. -
I have a very small Mac OS X server, with about 20 users. I recently had to move the server offsite. The server is up and running just fine, but I am unable to sent mail using simple smtp authentication. I currently have both Login and Clear selected, and using the Apple Mail client (or any other so far) I am unable to send e-mail from the COX @ HOME network.
Is this something COX is blocking?
Here is my postconf -n output. This must be a common problem. I can't figure out what I am doing wrong. It seems so simple.
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mapsrbldomains =
messagesizelimit = 0
mydestination = $myhostname,localhost.$mydomain,wilmashouse.com,castlewoodholdings.com,jumico.c om,mail.jumico.com
mydomain = jumico.com
mydomain_fallback = localhost
myhostname = mail.jumico.com
mynetworks = 127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
proxy_interfaces = 64.58.179.233
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpdclientrestrictions = permit_mynetworks rejectrblclient sbl-xbl.spamhaus.org rejectrblclient bl.spamcop.net permit
smtpdpw_server_securityoptions = login,plain
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdtls_keyfile =
smtpduse_pwserver = yes
unknownlocal_recipient_rejectcode = 550
virtualmailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
Any help would be appreciated.
Thanks
MikeOn your server, modify /etc/postfix/master.cf
Uncomment this single line:
#submission inet n - n - - smtpd
Save, then issue:
sudo postfix reload
From home, switch your mail client to use port 587 for SMTP.
This will work through COX.
You mention that others must want to send mail using their corp server, this is the solutions most companies use. Just open alternate ports.
Jeff -
No cleartext SMTP authentication in Server 3.0?
I am currently running OS X Server 2.2.2 on OS X 10.8. I have several Windows clients that use the eM Client E-mail/CalDAV/CardDAV client for mail, calendar and contacts (thsi is just about the only Windows client that works well for all these with OS XServer). Unfortunately this client can only use cleartext authentication for SMTP (it supports MD5 digest for IMAP). I am able to have this working fine via SSL/TLS to OS X Server 2.2.2 for users hosted in Open Directory.
I am now testing OS X Server 3.0.1 running on OS X 10.9.1 and I find to my horror that the SMTP authentication no longer works. IMAP authentication still works okay. It seems either there has been soem change to how SSL/TLS autnentication works on 3.0.1 or cleartest authentication is no longer allowed for SMTP...
Does anyone know if this is indeed a change on the server side? And is there any way to override it and force it to allow cleartext authentication, for Open Directory hosted users, for SMTP (over SSL of course)? If I can't solve this then I am caught between a rock and a hard place.
Thanks for any insights...Hello MrHoffman,
Thanks for your reply. I have indeed already enabled all those options; my configuration has not changed from 10.8.2/2.2.2 where it all worked just fine (with the same client configuration) :-(
Here is the output from my 10.9.1/3.0.1 server:
bash-3.2# postconf -c /Library/Server/Mail/Config/postfix smtpd_client_restrictions
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit
bash-3.2# postconf -c /Library/Server/Mail/Config/postfix smtpd_pw_server_security_options
smtpd_pw_server_security_options = cram-md5,digest-md5,gssapi,login,plain
and
bash-3.2# telnet xxx.yyyyyyyyyy.org.uk 25
Trying 10.0.200.6...
Connected to xxx.yyyyyyyyyyy.org.uk.
Escape character is '^]'.
220 xxx.yyyyyyyyyyyy.org.uk ESMTP Postfix
EHLO aaa.yyyyyyyyyyyyyy.org.uk
250-xxx.yyyyyyyyyyyy.org.uk
250-PIPELINING
250-SIZE 31457280
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5 GSSAPI
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-BINARYMIME
250 CHUNKING
The problem seems to definitely be related to authentication. If I (temporarily) allow unauthenticated submission on port 25 and set the client to not send any credentials then it connects and sumbits successfully.
In 'mail.log' I see these messages (many times):
Jan 2 18:56:13 xxx.yyyyyyyyyyyyy.org.uk postfix/postscreen[13851]: CONNECT from [10.0.200.68]:49293 to [10.0.200.6]:25
Jan 2 18:56:13 xxx.yyyyyyyyyyyyy.org.uk postfix/postscreen[13851]: WHITELISTED [10.0.200.68]:49293
Jan 2 18:56:13 xxx.yyyyyyyyyyyyy.org.uk postfix/smtpd[13852]: connect from aaa.yyyyyyyyyyyyy.org.uk[10.0.200.68]
Jan 2 18:56:13 xxx.yyyyyyyyyyyyy.org.uk postfix/smtpd[13852]: error: verify password: error: Credentials could not be verified, username or password is invalid.
Jan 2 18:56:13 www.thejenkinsfamily.org.uk postfix/smtpd[13852]: error: verify password: authentication failed: user=ddddd
I know this user/password is okay since (a) it can login as a network usr authenticated by Open Directory and (b) it can send mail from OS X Mail authenticating using CRAM-MD5 over SSL.
The eM Client SMTP log shows this...
16:15:51.477|023| SMTP S: 220 xxx.yyyyyyyyyy.org.uk ESMTP Postfix
16:15:51.477|023| SMTP C: EHLO [10.0.2.15]
16:15:51.477|023| SMTP S: 250-xxx.yyyyyyyyyy.org.uk
16:15:51.477|023| SMTP S: 250-PIPELINING
16:15:51.477|023| SMTP S: 250-SIZE 31457280
16:15:51.477|023| SMTP S: 250-VRFY
16:15:51.477|023| SMTP S: 250-ETRN
16:15:51.477|023| SMTP S: 250-STARTTLS
16:15:51.477|023| SMTP S: 250-ENHANCEDSTATUSCODES
16:15:51.477|023| SMTP S: 250-8BITMIME
16:15:51.477|023| SMTP S: 250-DSN
16:15:51.477|023| SMTP S: 250-BINARYMIME
16:15:51.477|023| SMTP S: 250 CHUNKING
16:15:51.477|023| SMTP C: STARTTLS
16:15:51.477|023| SMTP S: 220 2.0.0 Ready to start TLS
16:15:51.477|023| SMTP C: EHLO [10.0.2.15]
16:15:51.477|023| SMTP S: 250-xxx.yyyyyyyyyy.org.uk
16:15:51.477|023| SMTP S: 250-PIPELINING
16:15:51.477|023| SMTP S: 250-SIZE 31457280
16:15:51.477|023| SMTP S: 250-VRFY
16:15:51.477|023| SMTP S: 250-ETRN
16:15:51.477|023| SMTP S: 250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5 GSSAPI
16:15:51.477|023| SMTP S: 250-ENHANCEDSTATUSCODES
16:15:51.477|023| SMTP S: 250-8BITMIME
16:15:51.477|023| SMTP S: 250-DSN
16:15:51.477|023| SMTP S: 250-BINARYMIME
16:15:51.477|023| SMTP S: 250-CHUNKING
16:15:51.477|023| SMTP S: 250 BURL
16:15:51.493|023| SMTP C: AUTH LOGIN
16:15:51.493|023| SMTP S: 334 VXNlcm5hbWU6
16:15:51.493|023| SMTP C: Y2hyaXM=
16:15:51.493|023| SMTP S: 334 UGFzc3dvcmQ6
16:15:51.493|023| SMTP C: d2VhdmV3MQ==
16:15:51.555|023| SMTP S: 535 Error: authentication failed
16:15:53.895|023| SMTP C: AUTH LOGIN
16:15:53.895|023| SMTP S: 334 VXNlcm5hbWU6
16:15:53.895|023| SMTP C: Y2hyaXM=
16:15:53.895|023| SMTP S: 334 UGFzc3dvcmQ6
16:15:53.895|023| SMTP C: d2VhdmV3MQ==
16:15:53.942|023| SMTP S: 535 Error: authentication failed
16:15:54.488|023| SMTP C: AUTH LOGIN
16:15:54.488|023| SMTP S: 334 VXNlcm5hbWU6
16:15:54.488|023| SMTP C: Y2hyaXM=
16:15:54.504|023| SMTP S: 334 UGFzc3dvcmQ6
16:15:54.504|023| SMTP C: d2VhdmV3MQ==
16:15:54.550|023| SMTP S: 535 Error: authentication failed
Do you have any insights? I am somewhat stumped at this point... I am wonderign is some subtle change (in OS X Server) has resulted in an incompatibility between eM Client and OS X Server 3.0.
Regards,
Chris -
Lost SMTP Authentication along the way
At work we have our OS X mail server set to require smtp authentication. This works from within the network. However, once you go off the network, you can no longer send mail if you use smtp authentication. If you set up your smtp settings to not use authentication however, it works fine. This is a huge security hole for us. What could possibly be causing this?
I am able to send to my own email domain without authentication, but am unable to send from off my domain, to off my domain with or without authentication. Here is my postconf -n
alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = all
localrecipientmaps = proxy:unix:passwd.byname $alias_maps
luser_relay =
mail_owner = postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mapsrbldomains =
messagesizelimit = 0
mydestination = $myhostname,localhost.$mydomain,list.solon.k12.ia.us,solon.k12.ia.us,localhost
mydomain = solon.k12.ia.us
mydomain_fallback = localhost
myhostname = solon.k12.ia.us
mynetworks = 127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
ownerrequestspecial = no
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpdclientrestrictions = permit_mynetworks rejectrblclient sbl-xbl.spamhaus.org rejectrblclient relays.ordb.org rejectrblclient list.dsbl.org permit
smtpdpw_server_securityoptions = login
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdtls_keyfile =
smtpduse_pwserver = yes
unknownlocal_recipient_rejectcode = 550
virtualmailboxdomains =
virtual_transport = virtual -
How to disable OSX server 3 SMTP authentication
Hi,
I upgraded my 10.5 server to 10.9 OSX server. The mail server is only used internally. I use a HP Multifuntion printer which I often use to scan documents and the printer would mail me the scans in PDF. In 10.9 the user have to authenticate in order to send mail via the SMTP server. Unfortunately the HP printer expects an open SMTP server.
I know that underneath OSX mail server Postfix is running. Is there a way to dissable SMTP authentication so I can us my multifunction printer to mail me the scanned documents again?MrHoffman,
Thank you very much for pointing me in the right direction. I added my network to the mynetwork parameter and still got an error on the mail server. This was what I found in the log:
NOQUEUE: reject: RCPT from hpprinter.warmoezier.home[192.168.XX.XX]: 504 5.5.2 <NPIB32ACB>: Helo command rejected: need fully-qualified hostname; from=<XXXXXXXXXX> to=<XXXXXXXXXX> proto=ESMTP helo=<NPIB32ACB>
(I removed my mail addresses from the printout. It seems that the HP printer doesnot provide the fqdn in the HELO command.
Then I replaced:
smtpd_helo_restrictions = reject_non_fqdn_helo_hostname reject_invalid_helo_hostname
with:
smtpd_helo_restrictions = reject_invalid_helo_hostname
This solved my problem.
I gues I have to replace the network with the exact printer address in the mynetworks parameter to be on the safe side concerning openrelays in my private network.
I edited the main.cf directly without using the postconf command or should I have used postconf?
Thanks again for sharing your knowledge.
Peter.
P.s.
btw is the command in your post correct?
postconf -c /Library/Server/Mail/Config/postfix mynetworks -e "mynetworks = 127.0.0.0/8, [::1]/128, 10.20.30.40"
shouldn't it be:
postconf -c /Library/Server/Mail/Config/postfix -e "mynetworks = 127.0.0.0/8, [::1]/128, 10.20.30.40" -
I need to configure a smtp authenticated. How do i do that?
I need to configure a smtp authenticated. How do i do that?
Just sync your old phone with your computere with itunes and when you sync your new phone it will put your muxic and dcontacts into the new phone. Make sure you have sync checked in the settings box.
-
I've read a number of posts on this topic but still need some clarification.
Please forgive my lengthy explanation as I'd like to lay out the scenario properly - my questions are at the bottom of this post.
My current setup is Groupwise 7.0.3 with a GWAVA5 appliance as the front end.
All mail should go through GWAVA both inbound and outbound.
We have an MX record that points to our GWAVA5 appliance
We also have smtp pointing to our GWIA server for imap/pop connections by our mobile users, with authentication required.
I was advised by one of our users that he received mail containing an attachment "message.zip" which contained "message.htm" disguising an ".exe"
containing a virus.
The header showed the following, with the actual domain name changed by me for security reasons.
The IP of the sender is intact.
Return-path: <>
Received: from "ourdomain.com" ([115.248.180.37])
by "our_smtp_server.com" with ESMTP; Sat, 07 Apr 2012 07:07:41 -0400
From: "Automatic Email Delivery Software" <[email protected]>
To: [email protected]
Subject: Delivery failed
Date: Sat, 7 Apr 2012 16:35:33 +0530
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0012_955492E2.6AD1CC6D"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
This is a multi-part message in MIME format.
------=_NextPart_000_0012_955492E2.6AD1CC6D
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
The following is the entry from the GWIA log on the date in question:
07:07:40 359 DMN: MSG 462912 Accepted connection: [115.248.180.37] ()
07:07:41 359 DMN: MSG 462912 Receiving file: NCGWIA/DATA:\NCGWIA\WPGATE\GWIA\receive\db7ef7f4.224
07:07:43 359 DMN: MSG 462912 SMTP session ended: [115.248.180.37] ()
Questions:
It appears that the sender attached to our GWIA and sent the message from there.
The "mailer-daemon" indicates it was disguised to look like a system-generated bounce message.
What in my configuration would allow this?
Within the properties of my GWIA, I do not have "reject mail if sender's identity cannot be verified".
I've read the admin guides on this feature and it seems to point to PTR records checks.
Would that prevent this incident?
We have a number of internal servers that do send mail, through our GWIA, and I have relay exceptions for those (otherwise relay is not allowed)
If I set the "reject mail......" how will that affect those internal servers - will they need an actual account to authenticate with.
Hope I've explained it clearly
Thanks in advance
VinceThanks Uwe, but the sending machine is actually located "out there somewhere" [115.248.180.37] not on our network, so can't be checked.
As you stated, I'm sure this isn't a relaying issue as we have relay disallowed, with exceptions.
I suspect the mail went through because the sender used "[email protected]"
Vince
Originally Posted by buckesfeld
Vince,
find the machine with the sending IP address and check the machine.
To prevent such issues, you could modify the access control of the GWIA and allow SMTP only for those machines/users who need it.
Relaying doesn't come into play here, since the sender addresses an internal recipient, so no SMTP authentication needed.
Uwe
Novell Knowledge Partner (NKP)
Please don't send me support related e-mail unless I ask you to do so. -
SMTP authentication in OCSR2 9.0.4.1
I am setting the smtp authentication in OCSR2 to true, after that, when ever I sent mail thru the server, it need the smtp authentication. I thought I had been successfully configure the server. But later on, when I trying to send mail to the user in the OCSr2 server(from hotmail mail), the mail was reject due to the error"authentication failed".
It seem that the authentication setting not only affect the mail relaying but also incoming mail connection. Is this true??I searched some more on the Forum and eventually found a whitepaper on PJC's in Forms 6i. That gave me the tip not to implement the IView interface, but just extend the VBean class.
That's what I just tried and no more classCastException. That seems to fix my issue. No to develop the bean itself... -
Moved from DC to NC now smtp authentication with Cox won't work on roadrunn
I just moved from DC to NC. I have a cox.net email I prefer to use. Cox allows smtp authentication over other ISPs. I had RCN in DC and it worked perfectly. But now, with Time Warner (RoadRunner), it doesn't work. (Incoming still works fine, this is just about outgoing/smtp.) The smtp authentication is set up EXACTLY as it was in DC, but the connection just times out. Oddly, it works fine when I am connected directly to the cable modem. BUT, it does not work when I am connected to my wireless network using an airport extreme. I have deleted the smtp server a hundred times. I have selected SSL and unselected SSL a hundred times. I have tried no authentication. I have tried removing the "cox.net" after my name in the outgoing mail settings. I have reset the airport extreme to factory settings and set the network up again. NOTHING is working. Why would this work directly connected to the modem but not through the EXACT SAME WIRELESS NETWORK and settings I had with RCN??? Any tips/help is greatly appreciated. Oh, and all of my other non-RoadRunner smtp authentication accounts work fine. And my me.com email works fine.
Thanks again, Bob! Here is the error I'm getting for all three usual ports (25, 465 & 587):
CONNECTED Apr 07 08:26:51.776 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:smtp.west.cox.net -- port:465 -- socket:0x116c00450 -- thread:0x116f54800
READ Apr 07 08:26:52.090 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:smtp.west.cox.net -- port:465 -- socket:0x116c00450 -- thread:0x116f54800
554 fed1rmimpo03.cox.net bizsmtp connection refused from 71.77.138.209
It looks to my untrained eye that the cox servers are refusing me. Is that correct? So I should call cox, right? And how do I find the IP address that I'm being refused under?
Sorry to be so ignorant, but your help is greatly appreciated! -
Smtp authentication 10.8
Hi,
In 10.7 we could lock the SMTP service down to requiring a username and password.
In 10.8 it appears that anyone can send via the server, as long as they have the address. No very secure!!!
We did a simple upgrade from 10.7-10.8.
Obviously Server.app has been trimmed down severely, is there a way in terminal to require a user/password for SMTP authentication?
ThanksUse jMapMyLDAP plugins and this config works perfectly:
Name
Value
LDAP V3
Yes
Host
[DNS/IP Address to LDAP Server]
Port
389
Connect User
Leave blank unless anonymous binding is switched off
Connect Password
Leave blank unless anonymous binding is switched off
Use Search
Yes
Base DN
[Base of your directory such as dc=company,dc=com]
User DN / Filter
(uid=[username])
Map User ID
uid
Map Full Name
cn
Map Email
mail
The following table shows an example group mapping configuration:
Name
Value
Use Group Mapping
Yes
Allow Additions
Yes
Allow Removals
Yes & Default Managed
Mapping List
[The groups to map such as cn=teachers:4]
Lookup Type
Reverse
Lookup Attribute
memberUid
Lookup Member
uid
Use Recursion
No -
I am using exchange 2003 connected using MAPI with outlook2010.
when i send e-mail to one of my customer.
i got below error message
There was a SMTP communication problem with the recipient’s email server. Please contact your system administrator.
<xxxx.net #5.5.0 smtp;550-Please turn on SMTP Authentication in
your mail client. >
xxxx.net was my server
and my customer was using messagelabs "cluster6a.us.messagelabs.com" to receive mail
i was strange that MAPI connect does not need smtp authentication when send out e-mail.
is that anythings i have missing to do?
thank youHello,
Kindly go through with below link.
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_28133927.html
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_28078232.html
Deepak Kotian.
MCP, MCTS, MCITP Server / Exchange 2010 Ent. Administrator
Disclaimer:
Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!
All the opinions expressed here is mine. This posting is provided "AS IS" with no
warranties or guarantees and confers no rights. -
SMTP Authentication for PHP Mail
Can anyone help me in figuring out the correct way to incorporate the SMTP authentication into a form? I am having a lot of trouble in getting my forms to send with this format. My code for my php action page is below. I have my correct information where i included *******. Please let me know what i have wrong.
CODE STARTS HERE
<?php
//new function
$to = "*******";
$nameto = "LTL Freight Shop";
$from = "*******";
$namefrom = "LTL Freight Shop";
$subject = "Account Request";
authSendEmail($from, $namefrom, $to, $nameto, $subject, $message);
?>
<?php
$recipient = "*******";
//$subject = "Account Request";
$companyname = check_input($_POST['CompanyName'], "Enter your company name");
$firstname = check_input($_POST['FirstName'], "Enter your first name");
$lastname = check_input($_POST['LastName'], "Enter your last name");
$phone = check_input($_POST['PhoneNumber'], "Enter your phone number");
$fax = check_input($_POST['FaxNumber']);
$email = check_input($_POST['Email'], "Enter your email");
$address = check_input($_POST['StreetAddress'], "Enter your address");
$city = check_input($_POST['City'], "Enter your city");
$state = check_input($_POST['State'], "Enter your state");
$zipcode = check_input($_POST['ZipCode'], "Enter your zip code");
$country = check_input($_POST['Country'], "Enter your country");
$yearsinbusiness = check_input($_POST['YearsinBusiness'], "Enter your years in business");
$typeofindustry = check_input($_POST['TypeofIndustry'], "Enter your type of industry");
$multiplelocations = check_input($_POST['MultipleLocations']);
$numberoflocations = check_input($_POST['LocationsCount']);
$ltl = check_input($_POST['ServicesLTL']);
$ftl = check_input($_POST['ServicesFTL']);
$domesticparcel = check_input($_POST['ServicesDomesticParcel']);
$intlparcel = check_input($_POST['ServicesInternationalParcel']);
$airfreight = check_input($_POST['ServicesAirFreight']);
$oceanfreight = check_input($_POST['ServicesOceanFreight']);
$other = check_input($_POST['ServicesOther']);
$none = check_input($_POST['ServicesNone']);
$volume = check_input($_POST['TypicalVolume'], "Enter your typical volume");
$carrier = check_input($_POST['CurrentCarrier'], "Enter your current carrier");
$class = check_input($_POST['AverageClass'], "Enter your average class");
$weight = check_input($_POST['AverageWeight'], "Enter your average weight");
$process = check_input($_POST['Process']);
$hearabout = check_input($_POST['HearAbout']);
$comments = check_input($_POST['Comments']);
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
show_error("E-mail address not valid");
$message = "You have received an account request from:
Company Name: $companyname
First Name: $firstname
Last Name: $lastname
Phone Number: $phone
Fax Number: $fax
E-mail: $email
Street Address: $address
City: $city
State: $state
Zip Code: $zipcode
Country: $country
Years in Business: $yearsinbusiness
Type of Industry: $typeofindustry
Multiple Locations: $multiplelocations
Number of Locations: $numberoflocations
Services they use: $ltl, $ftl, $domesticparcel, $intlparcel, $airfreight, $oceanfreight, $other, $none
Typical Volume: $volume
Current Carrier: $carrier
Average Class: $class
Average Weight: $weight
How they currently process: $process
How they heard about us: $hearabout
Comments: $comments
End of message
//ini_set("SMTP","smtp.emailsrvr.com");
//ini_set("SMTP_PORT", 25);
//ini_set("sendmail_from","*******");
//mail($recipient, $subject, $message);
function check_input($data, $problem='')
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
show_error($problem);
return $data;
function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message)
$smtpServer = "smtp.emailsrvr.com";
$port = "25";
$timeout = "30";
$username = "********";
$password = "********";
$localhost = "smtp.emailsrvr.com";
$newLine = "\r\n";
$smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
$smtpResponse = fgets($smtpConnect, 515);
if(empty($smtpConnect))
$output = "Failed to connect: $smtpResponse";
return $output;
else
$logArray['connection'] = "Connected: $smtpResponse";
fputs($smtpConnect,"AUTH LOGIN" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authrequest'] = "$smtpResponse";
fputs($smtpConnect, base64_encode($username) . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authusername'] = "$smtpResponse";
fputs($smtpConnect, base64_encode($password) . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['authpassword'] = "$smtpResponse";
fputs($smtpConnect, "HELO $localhost" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['heloresponse'] = "$smtpResponse";
fputs($smtpConnect, "MAIL FROM: $from" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['mailfromresponse'] = "$smtpResponse";
fputs($smtpConnect, "RCPT TO: $to" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['mailtoresponse'] = "$smtpResponse";
fputs($smtpConnect, "DATA" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['data1response'] = "$smtpResponse";
$headers = "MIME-Version: 1.0" . $newLine;
$headers .= "Content-type: text/html; charset=iso-8859-1" . $newLine;
$headers .= "To: $nameto <$to>" . $newLine;
$headers .= "From: $namefrom <$from>" . $newLine;
fputs($smtpConnect, "To: $to\nFrom: $from\nSubject: $subject\n$headers\n\n$message\n.\n");
$smtpResponse = fgets($smtpConnect, 515);
$logArray['data2response'] = "$smtpResponse";
fputs($smtpConnect,"QUIT" . $newLine);
$smtpResponse = fgets($smtpConnect, 515);
$logArray['quitresponse'] = "$smtpResponse";
function show_error($myError)
?>
<html>
<body>
<b>Please correct the following error:</b><br />
<?php echo $myError; ?>
</body>
</html>
<?php
exit();
?>I have the same problem - user has Outlook 2010 on Exchange 2007. Mail goes directly into the deleted items folder. After browsing around the net I found 2 different site with the same potential fix. It seems that when migrating a user from Exch 2003 to
2007 (which we did) some of the configs get set incorrectly. The weird thing is we migrated over 2 years ago, and some others are experiencing the same after a long period after the migration. The fix that was suggested is:
Go to your Exch server, open up Exchange Management Shell and type the following:
get-mailboxcalendarsettings "domain/ou/user" | fl
set-mailboxcalendarsettings "doman/ou/user" -automateprocessing: Autoupdate
My user already had Autoupdate set, but this seems to have fixed it for me... -
I try to send mail with a Javamail client code (you can see the code below), it works fine if the mail server doesn't require SMTP authentication to be relay, but SendFailedException occurs if the mail server security setting is set to SMTP requires authentication (same settings as POP usr/pwd) on the mail server.
I believe it is an issue of SMTP authentication.
How do I code for SMTP authentication with Java Mail API?
Thanks!
Can Odabasioglu
Source Code:
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import java.io.UnsupportedEncodingException;
public class MailExample {
public static void main (String args[]) {
String host = "odabasioglu.net";
String from = "[email protected]";
String to = "[email protected]";
try {
Properties props = System.getProperties();
Authenticator auth = new POPAuth ();
props.put("mail.smtp.host", host);
Session session = Session.getInstance(props, auth);
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from,"FromName"));
message.addRecipient(Message.RecipientType.TO,new InternetAddress(to,"ToName"));
message.setSubject("Test Subject");
message.setText("Can Odabasioglu");
Transport.send(message);
catch (MessagingException e) {e.toString();}
catch (UnsupportedEncodingException e) {e.toString();}
static class POPAuth extends Authenticator {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("UserName", "Password");
}“Cannot send message using the server
Mail.ISP.net:[email protected]”
…And provides the “Send message using:” pulldown to
select one of two accounts (one is followed by
“:[email protected]”, the other is not). Both are the
same options the other two machines have, but neither
option works on this machine.
This is one of those error messages that they send application programmers to school for so that they can include error messages that don't tell you what the problem is.
After much trial and error, I discovered that this message is returned if there is an error in the recipient's email address. Perhaps, if it was stored in the address book, it became corrupt. I've found that manually typing in the address (without automatically finishing it from cache) usually fixes the problem. I just spoke to a customer this morning with the same error message, and entering the recipient's email address manually corrected the problem.
Maybe you are looking for
-
Subscription expires...How do I extend?
I got an email from Skype that my online number is about to expire. But I don't find any option in my account to extend the online numbers, how do I do that? Helmut Petersen
-
Currency issue in ECM for MSS Planning
Hi Team, I am facing a potential problem with curriencies in ECM, we have 22 MOLGA in our Project. In this 20 Countries are assigned to 99 Country Grouping (this for ANSAL feature). We have created multiple Pay Scale structures and assigned respectiv
-
Getting error while configuring LDAP with OEG
Hi All, I am trying to authenticate web service using LDAP at the time of loading and invoking. I am able to configure LDAP and connection is successful, But when authentication i am getting error. ERROR 08/Mar/2013:11:46:14.240 [4287d940] Failed to
-
Hi I'm thinking of replacing our MS Office suite with pages (iwork) or Open Office. There are a few reasons I would like iwork but there is one thing that bothers me and thats the proprietary fileformats. I would like to be able to use python, perl,
-
Plse HELP permissions messed up
I did something to my computer and now I have no access to the extra hard drives due to permissions PLEASE help me someone