Can We send mail through postfix installed on another server - postfix-mta

I have a question related to postfix.
I have two servers say server1 and server2. For some reasons my server1 is unabled to send mail through postfix. Now I want to send configure server 2 such that I can send mail from server1 via server2.
How it can be possible ? Please Help

You can use (within main.cf on server1) server2 as relayhost.

Related

How to make a url to point on an IP?

I have got a java server running on a server with IP x.x.x.x also got a webserver running on a server with IP y.y.y.y.
What i'm trying to achive here is to make a subdomain on my webserver like
auth.mydomain.com, and use it on the client side so clients will connect to my server with IP x.x.x.x. by using the subdomain.
Tried to add a redirect through c-panel by editing the subdomain, but there was no success!
I have read somethings about editing record.
Any ideas?
(Should I use xampp server on my server to "host" the subdomain?)
Create an a record for the subdomain and point it to your webserver (listening on port 80) then when the authentication is done have your application redirect them to wherever... (providing you have auth on this too)?
Why not have the application have a front end sitting on a webserver?

How to connect my Tryton client to the remote tryton server?

I am biginner with tryton so accept my request. My situation is: I install a tryton server in my remote server production and I install my tryton client in my localhost. My question is: can I connect to the remote server with my tryton client? if yes. I need to know how to do this. Many thanks in advance.
Yes, you can connect to a remote server. Thinks to take in account:
Your server should be configured to listen to public ip. See http://doc.tryton.org/3.6/trytond/doc/topics/configuration.html?highlight=listen#listen
Ensure that there is no firewall blocking communication
Once done that, you can connect to remote server introducing the host and the port of the server in the client dialog. Have a look at:
http://tryton-documentation.readthedocs.org/en/latest/user_guide/tryton_client.html#connecting-to-your-server

Postfix relaying emails to another domain

I have configured postfix over SSL and dovecot over SSL and it work fine if I send local relay , and it delivers to mailboxes within my domain name MX record point mail server.
mysysopmnds.com MX 10 mail.mysysopminds.com
However if I send an email to another domain , it bounces... and one of the error in the log is , as below
Jan 10 19:34:56 mail postfix/smtp[5334]: 37FADC28BB: to=, relay=none, delay=34, delays=34/0/0.01/0, dsn=5.4.6, status=bounced (mail for murugeshdomain.com loops back to myself)
what are key configuration that I should check or take care of to send email to other domains or any domains
TIA
hariharan
The is a good chance your internet serivice provider (ISP) is blocking out port 25 for outgoing email. I can tell you, mine is. This is also when i got the bounce message.
You can confirm this problem by typing:
telnet aspmx.l.google.com 25
If it does not generate Connected to aspmx.l.google.com but a timeout after half a minute or so than your ISP is blocking your outgoing traffic on port 25.
If this is the case you can solve it by redirecting your outgoing mail through for example a google mail account. You could use this link as guide to set the up the redirection.
It looks like this domain (murugeshdomain.com) has no MX record. For sending mails to another domain just take look in that domain has MX record. To check whether that domain has MX record dig MX domainname(in the case of linux command)

The server rejected SFTP connection, but it listens for FTP connections

When I use WinSCP in Windows to connect to VMware with Ubuntu, it prompted this:
The server rejected SFTP connection, but it listens for FTP connections.
Did you want to use FTP protocol instead of SFTP? Prefer using encryption.
What's the matter?
I can succeed to ping Ubuntu in Windows.
The fact that you can ping the server has nothing to do with what protocols it supports.
The message says that the server does not listen on port 22 (SSH, SFTP), but listens on port 21 (FTP). The point of the message is that WinSCP defaults to SFTP protocol, what is not common. So it tries to help users who expect FTP to be a default. But that's not relevant to you apparently.
As #ps2goat suggested, make sure you setup SSH/SFTP server.
For more details, see the documentation for the error message The server rejected SFTP connection, but it listens for FTP connections.
If you see this error all of a sudden (when SFTP has always worked for you for this particular server), and if you are using CSF (ConfigServer Security & Firewall), then it might be that your IP was blocked for SSH access. Try flushing all blocks. Also, try restarting the SSH server.
Old question but still responding so others might get benefited.
I stumbled upon this error and the first thing I checked was if my ubuntu machine had ssh installed. It was there and the latest version and I still would get this error.
As long as you have ssh access to the target, check the ssh service status and most certainly it'd be found inactive. Turn it on using
sudo service ssh restart
and you should be back in the game.
Do check the status of the SFTP by using
sudo service ssh status
and take any corrective action.

How to send Email through ASP.net using localhost

I am creating a banking application in asp.net v 2.0.I need to send confirmation email when a user creates the new account.
I am running the application in localhost.DO I need any special rights to send SMTP email?
provide me a proper way to send email from my application.
Regards
Jeyaganesh
Do you have a SMTP server set up on localhost? Test by using telnet on the server:
telnet 127.0.0.1 25
If the server responds, try sending raw SMTP commands to send an email and trouble-shoot from there.
I find the easiest way with the Microsoft SMTP server is to disable any checks for authentication and rely on relay restrictions, then restrict relaying to 127.0.0.1.
The fact that you're running on localhost shouldn't make any difference.
As long as you have valid email server settings, and it's allowed on the system you are running on, this works just fine.
Did you try it? Did you have a problem?
I think you can sent by gmail smtp server. check this out
http://csharpdotnetfreak.blogspot.com/2009/08/send-email-using-gmail-in-aspnet.html

Resources