Sending mail to local local account name...
imsimta version:
SunOS mars 5.10 Generic_125100-08 sun4u sparc SUNW,Sun-Fire-V240
Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)
libimta.so 6.3-3.01 (built 20:10:10, Jul 12 2007; 32bit)
We are tying to send email on our mail server to a local username using the /usr/lib/sendmail -Am command. (We were trying to use "mailx" but we kept getting "savemail panic" error messages saying that postmaster couldn't be found.) Our objective is to get the output of our backups sent to a local account which is a username in messaging server.
We consistently get "user unknown" errors. I've tried Mail, mailx and the sendmail program to get the messages sent. Here is an example of a local delivery case. We get similar results if we send to "[email protected]".
=====
# Mail -v backups
Subject: asdf
asd
EOT
# backups... Connecting to [127.0.0.1] via relay...
220 host.company.com -- Server ESMTP (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit))
EHLO host.company.com250-host.company.com
250-8BITMIME
250-PIPELINING
250-CHUNKING
250-DSN
250-ENHANCEDSTATUSCODES
250-EXPN
250-HELP
250-XADR
250-XSTA
250-XCIR
250-XGEN
250-XLOOP CFD464A5630A2B67F8E19F470E7B2A1F
250-STARTTLS
250-ETRN
250-NO-SOLICITING
250 SIZE 0
STARTTLS220 2.5.0 Go ahead with TLS negotiation.
EHLO host.company.com250-host.company.com
250-8BITMIME
250-PIPELINING
250-CHUNKING
250-DSN
250-ENHANCEDSTATUSCODES
250-EXPN
250-HELP
250-XADR
250-XSTA
250-XCIR
250-XGEN
250-XLOOP CFD464A5630A2B67F8E19F470E7B2A1F
250-ETRN
250-NO-SOLICITING
250 SIZE 0
MAIL From:<[email protected]> SIZE=49
250 2.5.0 Address and options OK.
RCPT To:<[email protected]>
DATA550 5.1.1 unknown or illegal alias: [email protected]
554 5.5.0 No recipients have been specified.
RSET250 2.5.0 Ok.
RSET250 2.5.0 Ok.
hal... Using cached ESMTP connection to [127.0.0.1] via relay...
MAIL From:<> SIZE=1073250 2.5.0 Address and options OK.
RCPT To:<[email protected]>
DATA550 5.1.1 unknown or illegal alias: [email protected]
554 5.5.0 No recipients have been specified.
RSET250 2.5.0 Ok.
RSET250 2.5.0 Ok.
postmaster... Using cached ESMTP connection to [127.0.0.1] via relay...
MAIL From:<> SIZE=2097250 2.5.0 Address and options OK.
RCPT To:<[email protected]>
DATA550 5.1.1 unknown or illegal user: [email protected]
554 5.5.0 No recipients have been specified.
RSET250 2.5.0 Ok.
Closing connection to [127.0.0.1]
QUIT221 2.3.0 Bye received. Goodbye.
=====
I am guessing that this problem is related to another issue where I cannot create a user called "root" in the mail server user base. (maybe not, though).
Is there a way to use the local mail programs (that depend on sendmail) to send to a Sun Messaging Server account on that same machine?
Hal Huntley
halsri wrote:
Is there a way to use the local mail programs (that depend on sendmail) to send to a Sun Messaging Server account on that same machine?The approach I have taken with this in the past is to add system-specific aliases to the Messaging Server aliases file e.g.
<snip /opt/SUNWmsgsr/config/aliases>
[email protected]: [email protected]
[email protected]: [email protected]
</snip>
Then run ./imsimta cnbuild;./imsimta restart
Regards,
Shane.
Similar Messages
-
Exch 2013 Forwarding Mail from local account to External SMTP user
New 2013 implementation... Two Servers (Front End and Back End) both running Exchange 2013.
I am having trouble sending a local AD Exchange mailbox mail to external SMTP address. I have tried several options.. I have created an "contact" as was required in previous versions. I have created new AD accounts with external SMTP addresses,
I have also attempted to use the scriptlet:
Set-Mailbox -Identity "%AD-USER%" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress
[email protected] (%AD-USER% was actual AD Username/mailbox) and
[email protected] was actual receipient SMTP address ([email protected])
Local AD Mailbox receives the mail appropriately however I have enabled forwarding everyway I know how and nothing seems to work. If I send mail straight from my account to the destination SMTP address, they get it; just not if it is sent to the local
AD account then forwarded via -DeliverToMailboxAndForward command...
Please help.. I have several users that I need to have their mail CC'd to an external SMTP address.. Previous versions of Exchange required a "Contact" to be created and then the mailbox forwarded to that contact, which had a SMPT mail address...
Im not adverse to implementing via powershell if I can just get it to work... Any suggestions are greatly appreciated and needed.I spent several hours on this but I found the perfect solution to forward to external and internal emails.
In my case, I needed to forward to more the one external email (This applies to Exchange 2013):
Here is how:
Using the EAC,
1) Make sure that ENABLE FORWARDING is unselected under the delivery options in mailbox features for your particular user.
2) Create all the External Contacts you need to forward in the CONTACTS tab in RECIPIENTS.
3) Create a group in the GROUPS tab, give it a meaningful Display name, and for ALIAS, make sure it is
a name that does not exist in any mailbox. This name will make part of a new email for that group.
You will need this email later to us in the SHELL for the last step.
Further down, under members, click on the plus sign to add all the contacts you wish to forward. You might want to uncheck ADD GROUP OWNER AS MEMBER.
Leave everything else with the defaults and click SAVE.
4) After you save, go back and edit the same GROUP you just created and click on delivery management.
Click the SENDERS INSIDE AND OUTSIDE OF MY ORGANIZATION radio so that any external emails are accepted.
CLICK SAVE.
Using the EXCHANGE SHELL enter the following command that will forward emails to that new group and keep
a copy of the email in the mailbox.
Substitute "user_to_forward_email" and "groupaliasemailaddress"
with your information:
Set-Mailbox username_to_forward -ForwardingAddress groupaliasemailaddress
THIS WORKED PERFECT FOR ME
Note that at this point you cannot use the EAC to forward to groups.
I don't know why but Microsoft should fix this
unless there is something I don't know.
HOPE THIS HELPS everyone out there looking for this type of scenario. -
Sending Mail to Local Users via the Terminal mail Command
I am having trouble sending mail to other user account via the terminal mail command. It seems to work with some accounts i.e. guest, etc, but fails with others i.e. Dennis. It will fail with no error message. Has anyone had any experience using the unix mail command locally ?
DennisI don't know the answer to this but you might try the -v option on the mail command in order to get verbose output. Perhaps a useful message would pop up.
Also, you might consider posting this message in the Unix Forum. There is a good chance that someone there can help you with this issue.
EMAC G4 1.0 GHz Mac OS X (10.4.6) -
Problem in sending mail for a pop3 account using transport.send(msg)
hi,
i am having problem in not able to send mail for a pop3 account ...
I have written an email gateway which listens to my pop3 account...on email arrival it listens nd extract the contents and send it as an sms msg...upon failure it needs to deliver the mail to sender id.I am using quartz to listen.
i am using jboss for server and java mail api.
here is my code
MimeMessage mimemsg = new MimeMessage(session);
mimemsg.setFrom();
mimemsg.setRecipients(Message.RecipientType.TO, to);
mimemsg.setSubject(subject);
mimemsg.setText(parsedText);
mimemsg.setSentDate(new Date());
mimemsg.setContent(strBuff.toString(), "text/html");
System.out
.println("Before sending mail");
Transport.send(m);
System.out.println("message sent successfully");
excepition i am getting is :
2008-09-12 11:45:11,140 INFO [STDOUT] Before sending mail
2008-09-12 11:45:11,140 ERROR [STDERR] javax.mail.IllegalWriteException: POP3 messages are read-only
2008-09-12 11:45:11,140 ERROR [STDERR] at com.sun.mail.pop3.POP3Message.saveChanges(POP3Message.java:438)
2008-09-12 11:45:11,140 ERROR [STDERR] at javax.mail.Transport.send(Transport.java:97)
2008-09-12 11:45:11,140 ERROR [STDERR] at com.openstream.emailgateway.sources.ListenEmailGateway.execute(ListenEmailGateway.java:422)
2008-09-12 11:45:11,140 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
2008-09-12 11:45:11,140 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-09-12 11:45:11,140 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:960)
2008-09-12 11:45:11,140 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
2008-09-12 11:45:11,140 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2008-09-12 11:45:11,140 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2008-09-12 11:45:11,140 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:263)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:140)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
2008-09-12 11:45:11,171 ERROR [STDERR] at $Proxy73.execute(Unknown Source)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.jboss.resource.adapter.quartz.inflow.QuartzJob.execute(QuartzJob.java:57)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
2008-09-12 11:45:11,171 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
2008-09-12 11:45:11,171 INFO [STDOUT] USer flag ..[Ljava.lang.String;@115c6cbas i am writing the message failure details to a template...
//on failure to send messages , reply to the sender about the failure
strBuff= tempDetail.writeToTemplate(smsmsg);
is that bcoz i am getting an exception -
My e-mail has changed, but I purchashed some songs in iTunes using my old e-mail address as my account name... so when I try to play the sonngs I bought and paid for - it keeps asking me to authorize my PC first, but I don't remember the password! And since the old e-mail address is no longer active, I can't even chenge the password- becasue it's sends the link to do so via e-mail! Even when I use the "ask personal questions" option to verify and it asks me for my date of birth, I put it in and it still won't acccept.
Hello there, loupar.
The following Knowledge Base article offers up just how to change your Apple ID for the App Store on your iOS device:
iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store
http://support.apple.com/kb/ht1311
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
CANNOT SEND MAIL FROM .MAC SMTP ACCOUNT
Hello everyone--
I can receive mail from my .mac account and have done extensive troubleshooting including:
1. Changing ports from 25 to 587
2. Deleting and re-installing mailbox
3. Reading a hosts of topics
4. I have the serving settings with SSL unchecked
...but this still giving me the same trouble. I cannot send out because my email address keeps getting rejected.
Any suggestions? Thanks!Are you also accessing an email account and SMTP server in Mail that is provided by your ISP used for connecting to the internet?
If so, can you send mail with this account and SMTP server?
If the answer is yes to both questions, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.
Most, if not all ISPs now block the use of SMTP servers outside of their network on Port 25. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless.
Changing the Port for the SMTP server that is outside of the ISP's network from 25 to 587 usually resolves it but sometimes not depending on the ISP's restriction.
Have you contacted your ISP regarding their restrictions and/or requirements when using an SMTP server that is outside of their network or not provided by them?
Using your ISP's SMTP server to send mail with your .Mac account should work and it may be required regardless. -
How can send mails using hotmail/rediffmail domain name?
I have used the below code to send a mail using javamail API?Even when I am sending my application does not have notified any of error/exceptions,But the message is not reached to I have given receipient's address in the to field.
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class Sendmail1 extends HttpServlet {
private String smtpHost;
// Initialize the servlet with the hostname of the SMTP server
// we'll be using the send the messages
public void init(ServletConfig config)
throws ServletException {
super.init(config);
smtpHost = config.getInitParameter("smtpHost");
//smtpHost = "sbm5501";
smtpHost = "www.rediffmail.com";
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException, java.io.IOException {
String from = request.getParameter("from");
String to "[email protected]";
String cc = "[email protected]";
String bcc ="[email protected]";
String smtp ="www.rediffmail.com";
String subject = "hai";
String text = "Hai how r u";
PrintWriter writer = response.getWriter();
if (subject == null)
subject = "Null";
if (text == null)
text = "No message";
String status;
try {
// Create the JavaMail session
java.util.Properties properties = System.getProperties();
if (smtp == null)
smtp = "www.rediffmail.com";
properties.put("mail.smtp.host", smtp);
Session session = Session.getInstance(properties, null);
//to connect
//Transport transport =session.getTransport("smtp");
//transport.connect(smtpHost,user,password);
// Construct the message
MimeMessage message = new MimeMessage(session);
// Set the from address
Address fromAddress = new InternetAddress(from);
message.setFrom(fromAddress);
// Parse and set the recipient addresses
Address[] toAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.TO,toAddresses);
Address[] ccAddresses = InternetAddress.parse(cc);
message.setRecipients(Message.RecipientType.CC,ccAddresses);
Address[] bccAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.BCC,bccAddresses);
// Set the subject and text
message.setSubject(subject);
message.setText(text);
Transport.send(message);
//status = "<h1>Congratulations,</h1><h2>Your message was sent.</h2>";
} catch (AddressException e)
status = "There was an error parsing the addresses. " + e;
} catch (SendFailedException e)
status = "<h1>Sorry,</h1><h2>There was an error sending the message.</h2>" + e;
} catch (MessagingException e)
status = "There was an unexpected error. " + e;
// Output a status message
response.setContentType("text/html");
writer.println("<title>sendForm</title><body bgcolor= ><b><h3><font color=green><CENTER>CALIBERINFO.COM</CENTER></h3>Your message was sent to recepient(s).<br><font color=red>"+"\n"+to);
writer.println("<br><br><a href=e:/mail/javamail/mail.html>back to compose</a>");
writer.close();
Please any one help me out from this probs.
Awaiting for yours reply,
or give me a reply to: [email protected]
Regards,
@maheshkumar.kHi,
how can send mails using hotmail/rediffmail domain name?In your java application,you specified www.rediffmail.com as your
smtp server.But that is the address of that website.Try will a smtp
server instead.For a list of free smtp servers,please visit http://www.thebestfree.net/free/freesmtp.htm
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
Dear All,
I am using MSSQL SSRS 2008.
All the reports run properly when viewed via a web browser. However for subscription, I am having a strange
experience.
The subscription having intermitten failure. I need to execute multiple times to get it work.
Following is the exception I am getting:-
Failure sending mail: The user or group name 'xxxxx' is not recognized.Mail will not be resent.
Failure writing file DailyPolicyExportCDN_ST@timestamp : The user or group name 'xxxxx' is not recognized.
Following is the exception I retrieve from log files.
webserver!ReportServer_0-2!1b0c!07/31/2014-05:25:09:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeClientDisconnectionException: A client has disconnected from the Report Server Web service application
domain ReportServer_MSSQLSERVER_0-2-130512716074991980. No corrective action is required. An error code has been submitted to ASP.NET to release the connection. The error code is 800708CA. ---> System.Runtime.InteropServices.COMException: This network connection
does not exist. (Exception from HRESULT: 0x800708CA)
Any idea what went wrong?
Thanks in advanceHi NeoCK,
According to your description, you can access your report successfully, but it fail to send e-mail subscription. Right?
In this scenario, since you can access the report successfully, so this user has permission on report server. Please go to E-mail setting in your Reporting Services Configuration Manager, check if the current user has permission on that SMTP server.
If this is still not working, please recreate the subscription and try again.
Reference:
SUBSCRIPTION
ERRORs : Failure sending mail: The user or group name 'CB_OFFICE\XXXX' is not recognized.
The user or group name 'MYDOMAIN\myuser'
is not recognized
SSRS
2008: Failure writing file ... The user or group name 'domain\user' is not recognized
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Can not send mail to my pop account
My ipad1 will ot send mail in my pop account since I just upgraded today.
Reinstalling OS X Without Erasing the Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
Reinstall OS X: Select Reinstall OS X and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
Also see:
Reinstall OS X Without Erasing the Drive
OS X Yosemite- Reinstall OS X
Note: You will need an active Internet connection. I suggest using Ethernet
if possible because it is three times faster than wireless. -
why can I Only send mail from my iCloud Account and none of my others yet can receive from all ?
Morning Allan ,sorry hit the wrong button. Thank you for responding . Meant to reply not notify you that my issue was solved . It's not . I imported all my settings via iTunes and all of the accounts receive mail as I said but can't send . Can you tell me exactly what to change with regard to my outgoing smtp. and PE the authentication ?
-
I can t send mails with my telus account
I can<t send mails with my telus account but I can received it. Does anyone of you knows how to fix it
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
iPad Mail
http://www.apple.com/support/ipad/mail/
Cheers, Tom -
my talktalk email account was set up by a helpful apple employee at one of their shops to only send mail via an iname account.
It had worked perfectly well before.
I have tried but been unable to undo this. Help!From the Mail menu bar, select
Window ▹ Connection Doctor
Look for the unwanted SMTP (outgoing mail) account in the window that opens. Double-click it. Another window will open, showing a list of all the outgoing mail accounts. The unwanted one will be selected. Click the minus-sign button to delete it, then click OK.
If there's more than one unwanted account, repeat. -
Sending mail through "local" mail server?
I've set up fetchmail and procmail to download (and delete) mail from my mail host to a ~/Maildir on a server in my home which I then access through dovecot IMAP.
I want to be able to send mail "through" my server too, instead of going straight to my host's smtp. Maybe there isn't any good reason to do this? I want my Sent mail to be stored on my local server. And if set up more than one mail account, it would have to use the right smtp depending on the email address.
Anyone know how they would go about it? I found a handful of dovecot/fetchmail articles, but none that mention sending mail really. There's an oldish looking wiki article on exim, but I feel like I shouldn't need to use system wide conf for this.Dovecot and fetchmail only handle the mail coming to you (ie, IMAP/POP3). You need SMTP to send email.
I highly recommend Postfix, and set it up to use your ISP's mail server as relay_host -
hi, i am running my application in tomcat.
if i specify a smtp host server name , could able to send a mail in same domain without using authenticator.
But i want to know without specifying a smtp server name, is it posstion to send email using "localhost" as the server.
Properties props = new Properties();
props.put("mail.transport.protocol", "smtps");
props.put("mail.smtp.host", smtpHost);
Session session = Session.getDefaultInstance( props);
MimeMessage message = new MimeMessage( session );
message.setFrom( new InternetAddress(aFromEmailAddr) );
message.addRecipient(
Message.RecipientType.TO, new InternetAddress(aToEmailAddr)
message.setSubject( aSubject );
Multipart multipart = new MimeMultipart();
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(aBody);
multipart.addBodyPart(messageBodyPart);
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(filePath);
attachmentBodyPart.setDataHandler(new DataHandler(source));
attachmentBodyPart.setFileName(fileName);
multipart.addBodyPart(attachmentBodyPart);
message.setContent(multipart);
Transport.send( message );
In my code if i mention a smtp server name in smtpHost , code is working fine, but i want to use localhost.
so what will be the code for that??? should i have to configure anything.
plz help.
thnx in advanceThe code for sending mail from localhost is simply this:
props.put("mail.smtp.host", "localhost"); But this will not work unless you have an SMTP server running on the same computer where that code is running. That's what "localhost" means. If you are trying to send e-mail without using a server which knows who you are, stop trying to do that. That makes you a spammer. Don't do it. -
Sending mail from non-BT accounts
I have email accounts with Apple (mobileMe), my own domain (hosted by Verio) and another of my own domains (hosted by Network Solutions) - as well as the BTinternet.com email account.
Until today, all four accounts were set up on my email client (Apple Mail) to use their own respective SMTP servers for outgoing mail, and all four have worked fine in this way for literally years.
This morning, I started getting error messages trying to send mail from the domain hosted by Verio ("cannot send message using the server [my own domain's SMTP server]").
In the end, I followed the steps outlined in a thread on this forum to "add" the account to BTYahoo, verify it, and change the email client settings to use BT's SMTP server. So now it works fine.
What I don't get is why I had to change this one account, when the other non-BT accounts (Apple and NS SMTP servers) continue to work fine as they are (ie using their own server details for outgoing mail).
Anyone know the answer? Obviously it works, so there's no problem (apart from wasting 2 hours this morning trying to figure out what the **bleep** had gone wrong), just curious as to BT's logic here.
Solved!
Go to Solution.gregch wrote:
I have email accounts with Apple (mobileMe), my own domain (hosted by Verio) and another of my own domains (hosted by Network Solutions) - as well as the BTinternet.com email account.
Until today, all four accounts were set up on my email client (Apple Mail) to use their own respective SMTP servers for outgoing mail, and all four have worked fine in this way for literally years.
This morning, I started getting error messages trying to send mail from the domain hosted by Verio ("cannot send message using the server [my own domain's SMTP server]").
In the end, I followed the steps outlined in a thread on this forum to "add" the account to BTYahoo, verify it, and change the email client settings to use BT's SMTP server. So now it works fine.
What I don't get is why I had to change this one account, when the other non-BT accounts (Apple and NS SMTP servers) continue to work fine as they are (ie using their own server details for outgoing mail).
Anyone know the answer? Obviously it works, so there's no problem (apart from wasting 2 hours this morning trying to figure out what the **bleep** had gone wrong), just curious as to BT's logic here.
Hi Gregch.
To be honest, the problem seems to be at the destination smtp service end and nothing to do with BT. You've not really supplied any details of the error message - is there anything else in the received message ?
You've assumed that it's a BT fault, rather than perhaps investigating the possible error at Verio. As the other accounts work as exists, it really does point at Verio (or indeed something local, perhaps a security package interferring etc).
http://www.andyweb.co.uk/shortcuts
http://www.andyweb.co.uk/pictures
Maybe you are looking for
-
Aging music fan wiped IPOD when installing itunes onto new laptop on xp
I have just bought a high end sony vio with duo intel running windows xp. I installed itunes and when I synched the ipod I wiped all my tunes. BUT my ipod still shows about 20% space on memory used so I am pretty sure the songs are still there Does a
-
I use Weblogic 10.3.2 ( so jaxws metro based ) The web app I have is uploading and downloading large files (PDF's) via a WS (i know is not the optimum way for doing this but this is how it is now) NOW the files that are uploaded and downloaded are in
-
Get rid of the google search bar??
I want net neutrality. Google must go. I loaded Firefox on windows-xp and the Google search bar still comes up within Firefox. How do I GET RID OF GOOGLE?? I have used Firefox on Linux also on the same machine.
-
[Cisco ACS] 11036 The Message-Authenticator RADIUS attribute is invalid
Hi, I got many Cisco AP which are linked to 2 Cisco WLC. On each WLC, I configured a primary and a secondary RADIUS Server. RADIUS servers are Cisco ACS 5.2.0.26 (patch 10) Primary and secondary ACS configurations are synchronized. There are no probl
-
When I try to delete them, the page becomes slow and unresponsive, taking a very long time to merely select a screenful of them and then an even longer time to delete them. there are so many copies it would take me days to clear out them out by selec