I tried writing code to send email using Java mail API. The code worked fine when I'm connected to direct internet. But when I use internet over a http proxy, the code doesn't work. After all the research I did. I found Java mail doesn't support http proxy tunnelling. I also found program like CORKSCREW will help me to tunnel through proxy. But When I did some research on that, I didn't understand what is the connection between Java code and Corkscrew. Please help me to understand this. I have got to finish the Java code sooner. Please help me.
JavaMail - Corkscrew - http proxy
776 Views Asked by Ragupathy At
1
There are 1 best solutions below
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in PROXY
- CDN Detector Extension / Script
- How to use a proxy to obtain a static IP for my Node.js application?
- Record all desktop internet requests and select certain requests and send it to the server
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
- How to efficiently test some HTTP proxies for accessing a specific domain?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Disable/Enable OSB proxy service via WLST
- Add proxy configuration to tracking_uri in MLFlow
- Python : Using a MTProto Proxy For a Telegram Bot
- How to proxy to another port?
- How to use ProxyAgent with http_proxy and no_proxy environment variables
- Does a 403 error occur if there is no user-agent on the proxy network?
- Enable TLS caching with squid. https_port directive support
- How to peek or ready to check whether HTTP request or not in TCP proxy?
Related Questions in JAKARTA-MAIL
- Why my mail service api spring isnt working?
- javamail connecting to gmail, expunging messages in Sent Mail does not fully delete the message
- AuthenticationFailedException while sending mail using google service account
- JavaFX: NoClassDefFoundError: jakarta/mail/internet/AddressException when creating Jar
- Create a InternetAddress and set it to RecipientType BCC
- Unable to send email using Java API
- javax.mail.MessagingException occurs when trying to read a UTF-7 email in a Microsoft 365 mailbox using OAuth 2 and Jakarta Mail
- Send email from IONOS Domain with java
- java.lang.IncompatibleClassChangeError: com.sun.mail.util.LineInputStream does not implement the requested interface jakarta.mail.util.LineInputStream
- How to Handle Missing com.sun.mail.iap.ParsingException Equivalent in Jakarta Mail API?
- Java Jakarta Mail not accepting emoji on subject
- Sending preencoded image data inline
- MimeMessage emlMessage = new MimeMessage(session, emlInputStream); throwing InvocationTargetException
- Any good way to use javax.mail (jakarta.mail) with MS Graph API?
- springboot javaMailSender SMTP connection error: Couldn't connect to host, port: localhost, 25; timeout -1;
Related Questions in HTTP-PROXY
- Is it ok to proxy the Keycloak APIs
- How to structure address of call to external server using proxy
- Aiohttp not working with (free) http proxy?
- Cant read the whole response from the HttpURLConnection I want to achieve that for My Proxy Server?
- Angular 17 ng serve proxy returns 302 instead of forwarding
- How to run an iPadOS firebase app behind an http proxy?
- Multi-layer reverse proxy - Nginx
- Forward proxy as a solution. Need guidance
- Pact-JS Support for Corporate Proxies
- Pull PubSub Message through Proxy server - Python
- API gateway invoke URL dosen't load images in webpage
- HTTPConnectionPool(host='http_proxy=<ip>, port=<port>): Max retries exceeded with url: <url>
- How to prevent spam attacks from rotating proxies
- How to pass proxy server's username and password in boost::asio::resolver::query
- TTL not working with custom auth on Squid
Related Questions in PROXYTUNNEL
- Accessing HTTPS web services through proxy tunnel using org.apache.http.impl.client.ProxyClient
- How to tunnel websockets over TCP in node?
- Scrapyd Retry if Errback in twisted deferreds / Could not open CONNECT tunnel Error
- Celery flower with apache2 reverse proxy ssl handshake fails for websocket
- SocketServer rfile.read() very very slow
- JavaMail - Corkscrew - http proxy
- apache 2.4.6 reverseproxy mod_proxy_wstunnel for secure websocket wss:// fails
- capture all proxytunnel output to a file
- proxy tunneling with c
- urllib2: How to access a header from the SSL tunneling reply
- Firefox via SSH tunnel
- Suggestion on developing a RETS PHP Tunnel
- how to use multiple proxies in curl?
- Transfer file trough SSH tunnel with Java
- SSH over HTTP with proxytunnel and nginx
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
To use corkscrew with JavaMail, you configure inetd to run corkscrew when you connect to some local port. The corkscrew command that you run then specifies the proxy server and the remote mail server that you want to connect to.
The Java code doesn't change, you just configure JavaMail to use "localhost" and the local port that's configured for corkscrew. The corkscrew "server" then forwards/tunnels all requests to the real mail server.
An alternative to corkscrew is connect, which can be run as a server without using inetd.