use Blat to send mail in local network problem - blat

I am trying to use Blat to send mail in the local mail server but an error message keeps returning, saying that the SMTP server does not like the sender name.
I have kept trying with different sender names but it's still the same. Does anybody know how to fix it?

I've used blat for sometime to do this. here's the key.
-to 1#foo.bar -f 2#foo.bar -server your.smtp.server-name.bar
what are you using?

Related

SSH with Chilkat in VB6; but maybe generaly

I have written an application for SSH, but the originally used library is no longer developed and has old methods of encryption. Thus, it is not usable for contemporary devices. I am looking for alternatives and I found Chilkat.
I am able to start connecting to the device (Cisco switch for instance), but communication behaves in strange ways.
The basic principle of my program is based on talking client (my program) and server (Cisco switch). After the login is done, I get prompt saying that I would get into priviledged mode by command enable. I recongize this need by sign > at the end of prompt. I send command enable and awaiting prompt Password: After I get it I a send password. I am using two components and timer in this time :
success = ssh.ChannelSendString(channelNum, commandToSend & Chr(13), "ansi")
and
auxStr = ssh.GetReceivedText(channelNum, "ansi")
when I get word Password: in receiving text, I send password string like a commandToSend
but I get % Access denied
I am pretty sure that the password is OK; it seems like one extra enter is sent via connection, because during next returned text is this message :
Translating "passwordString"...domain server (255.255.255.255)
it indicates that passwordString was sent into the switch after message
% Access denied
not like an answer to Password: prompt.
I made debugging in the code to see what my program is sending to switch, but everything seems to be correct. Maybe some mistake in chilkat component ?
Has anybody similar experience ? Or explanation of this behaviour and advice how to solve it, please ?
Send the "enable" command (or just "ena") followed by a single CHR(13). Then get the output from the SSH server, which should be the "Password:" prompt. Then send the password followed by the CHR(13). Then get the output. The send each command terminated by a single CHR(13) and get the output after each command.

SQLServer Error: Could not connect to mail server. (The requested name is valid, but no data of the requested type was found)

My Problem On Database Mail on Sql Server 2008 R2. My Database Mail Work fine upto yesterday since 2 years. But From Today My Database Mail Not Work.
I Restart my Database Server. Reconfigure the Database Mail but still i faced the following error.......
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 6 (2017-06-12T16:12:12). Exception Message: Could not connect to mail server. (The requested name is valid, but no data of the requested type was found).
My Mail Account Setting in following...
I tried from Send Test E-mail, See the View Database Mail Log and see the above mention error.
Please help to resolve this issue.....
Thanks in advance....
Your problem seems network related, especially since nothing has changed on the database configuration.
Also make sure, your user has the rights to connect and access the specified mailbox.
Check Firewalls, DNS, IP configuration.
By the way, the configuration for Office365 seems good, that's the one I use for my servers ;)

fix for X-Authentication-Warning

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');

Sending mail using vb.net

I have developed one application for sending mail using vb.net. for that i'm using system.net.mail namespace; but while sending mail i got one error that is time out.
& for avoiding this error i used try catch block but i'm failed to resolve this problem.
Is there any solution on this error?
It seems the problem with the SMTP server, please verify your SMTP settings are valid and also verify firewall settings.
you need open in windows firewall setting I think. What OS you used?if server need this. another I not try yet :D

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)?