I have an application that uses camel to send email. There is a greenmail server set up in our environment. The testers testing the service need to be able to view the emails sent, to verify that the html is formatted correctly.
There doesn't seem to be an obvious way to point a browser at the greenmail server to view the email.
Note that we use wildfly, and JMX with wildfly and dockers is not reliable. Is there something besides jmx?
Use Thunderbird client. Set it up so that it uses pop3 and your server/port that hosts your greenmail.
You can create a separate user and specify it in CC for your mail so that the observation of the mail would not impact the core process you test.
Here is more detailed post on how to setup Thunderbird with Greenmail.
Related
I had a server running Zimbra 8.6 and it was configured to send via any one of five external relays based upon which one of my external accounts I was sending from. This worked great until I had a server crash and rebuilt this one using the latest Zimbra 8.7.
I have read and researched and tried everything I had done for my old 8.6 system and I simply cannot get this to work! When I try to send an email from the web client to gmail I get a warning from gmail that my server's IP address and domain are not allowed to relay since they are unauthenticated. According to my postfix configuration I should be authenticating using my own gmail credentials. But, the web client seems to ignore this.
When I try logging in directly on the Zimbra box I can use sendmail with the -tf parameters to mock up an email from one of my addresses to gmail and it works just fine. It is sent and looks like it came from the proper relay domain.
Is sender dependent relaying broken on 8.7? Does it work for anyone?
Welp, I gave up and set my server up to use gmail as the external relay for all accounts, and in my admin console I set my user account to be able to send from all of my external email addresses (specifying each of them there).
Now it properly relays through gmail and still shows each message as coming 'from' the external account I select in the new message window.
Maybe this will help someone with a similar issue.
I have a website hosted outside the organization. The mail server to recieve the message is inside the organization. The website submits a simple form to email using PHP mail function. Works on every domain tested for the recipient except for ones internal to the domain.
So website is www.domain.com. Mail server is mail.domain.com. Hosted at separate sites. When www.domain.com wants to send a message to user#domain.com it should lookup the mx record and notice that mail.domain.com is at another location and forward the message.
If I configure it to send to user#otherdomain.com, the message is successfully sent and received. But sending to the same domain responds with 550 error 'No such user here'. So I'm wondering if the webserver thinks it is supposed to be the recipient of the mail, and thus responds with 'No user here' because, frankly there is no user configured there.
So does anyone know what cpanel/whm settings need to be added/adjusted to allow this server to know that it is not responsible for mail exchanging for this domain. I do have the mx record setup properly, but don't know if it also requires an A record for the address. Any help much appreciated.
I did notice others having the same issues, but no solutions were actually proposed, so I figured I would make my own question, and see if it get's a good answer for others too that may experience the same issue.
It looks like your routing settings are incorrect. Navigate to cPanel >> MX Entry and verify that the routing setting is Remote Mail Exchanger
As the mails are to be delivered externally, setting this as Local Mail Exchanger will make cPanel think the mails are setup locally and cPanel will try to deliver mails locally. As there are no local mail accounts configured with that name, it bounces with the mentioned error.
I would suggest avoiding sending directly to the MX. Submit your message to a local mail server and let it relay to the MX for you. If you send using PHPMailer with SMTP you will get much better feedback on deliveries. As for what cPanel is doing, check the local mail server log, usually in /var/log/mail.log.
You have to change the setting from local to "Remote Mail Exchanger" in dns zone file. and also create mail account at remote location site.
could anybody tell me if it is possible to send email from localhost using JBoss AS-5.1 + Seam-2.2?
I've tryed launching mail example which goes with Seam, but the result is unsatisfactory.
Clicking the "Send Plain Text Email" button leads to the following message:
Email sending failed: Could not
connect to SMTP host: localhost, port:
2525
However, sending a letter "from inside a servlet" gives me a success page. Alas, no email really comes to the target address.
The example page says I could have firewall enabled, which might block email sending. But I haven't installed any firewalls or enabled the existing ones. My OS is ubuntu-9.04. As far as I know, the default firewall configuration tool for this system is ufw and it is disabled by default.
Does anybody know how to deal with the situation?
UPD:
Suppose, I should clarify my message. As for now, I try to send email via seam example application and all the errors and buttons I mentioned above refer to this example, not my own program.
Here's the screenshot:
mail example http://pics.livejournal.com/emanemos/pic/00011asb
JBossAS deploys a mail service as part of its standard configuration. The mail service takes the form of a javax.mail.Session, and is bound to JNDI under java:/Mail. Applications can make use of this mail service in order to send mail via SMTP.
My guess is that your seam app is trying to send mail by one method, and your servlet app by another method. Judging by the error message you're getting the servlet app is doing it using the JBossAS mail service, and the seam app is trying to do it all itself.
In order to configure the JBoss mail service, you need to edit the deploy/mail-service.xml file under the server directory.
As for the Seam app, you need to find out how it's doing mail handling, and configure it seperately to the JBossAS mail service. Better yet, change it to use the JBossAS mail service.
how does one go about getting email to work in a default MAMP installation? not sure if this is relevant but im trying to send emails from a codeigniter app and whatever protocol i use (mail, sendmail, or smtp), emails never arrive
anyone?
My ISP is blacklisted so its impossible to send emails from my local server. Check your mail log (/var/log/mail.log) - it may give you some useful information. I usually use google's smtp servers for sending mail during development, and then use mail() on the production server..
I have a desktop application (Windows Forms) which my client hosts on a Citrix server. I would like to launch the user's locally configured mail client to send mail from my application. How do I do this?
In addition to this, I will need to attach a file to the email before it is sent.
I'm not at all sure how the Citrix client would handle mailto: links (or if you can configure that), but if you haven't tried them, I suggest you do.
Example:
mailto:someone#example.com?subject=hello&body=see+attachment&attachment=\\host\path-to\file.foo
Also note that not all email clients support the attachment parameter in mailto URLs.