(no subject)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Dibyendra Hyoju
Hi all,

I have installed postfix in my local machine and it's working. In the configuration I added following line:
mynetworks = 127.0.0.0/8, 192.168.0.0/24

However, in the rackspace having IP: 50.57.179.51, I could not get postfix to work. I am not sure what configuration is required in the main.cf file. Please provide your suggestion, what configuration in main.cf I have to make in order to have a working postfix?

Thanks in advance.

With regards,
Dibyendra
Reply | Threaded
Open this post in threaded view
|

Re: how to use a mailing list

Reindl Harald-2


Am 25.01.2013 10:43, schrieb Dibyendra Hyoju:
> I have installed postfix in my local machine and it's working. In the configuration I added following line:
> mynetworks = 127.0.0.0/8 <http://127.0.0.0/8>, 192.168.0.0/24 <http://192.168.0.0/24>
>
> However, in the rackspace having IP: 50.57.179.51, I could not get postfix to work. I am not sure what
> configuration is required in the main.cf <http://main.cf> file. Please provide your suggestion, what configuration
> in main.cf <http://main.cf> I have to make in order to have a working postfix?

first:  you should start wih a subject to your mails
second: provide "postconf -n" output as statet in the welcome message
third:  describe your problem "could not get to work" is no description


signature.asc (271 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how to use a mailing list

Thomas kinghorn
On 25/01/2013 13:21, Reindl Harald wrote:
> first:  you should start wih a subject to your mails
> second: provide "postconf -n" output as statet in the welcome message
> third:  describe your problem "could not get to work" is no description
>

And read the documents......( I am not going to say RTFM)
Reply | Threaded
Open this post in threaded view
|

Re: your mail

Wietse Venema
In reply to this post by Dibyendra Hyoju
Dibyendra Hyoju:
> I have installed postfix in my local machine and it's working. In the
> configuration I added following line:
> mynetworks = 127.0.0.0/8, 192.168.0.0/24
>
> However, in the rackspace having IP: 50.57.179.51, I could not get postfix
> to work. I am not sure what configuration is required in the main.cf file.
> Please provide your suggestion, what configuration in main.cf I have to
> make in order to have a working postfix?

You don't show the error message, so I won't speculate other than
that you need to update the old network adress and hostname
information.

For more details:

http://www.postfix.org/BASIC_CONFIGURATION_README.html

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: your mail

Dibyendra Hyoju
Hi Wietse, Thank you for your response. I couldn't send email from Postfix.

Part of network configuration I added/configured to file is as follows:
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks = 127.0.0.0/8, 50.57.179.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/ssl/certs/Equifax_Secure_CA.pem
smtp_use_tls = yes

From the command line, I get following messages while trying to send email:
madan@library:~$ ehlo gmail.com
-bash: ehlo: command not found
madan@library:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 library.net.np ESMTP Sendmail 8.14.3/8.14.3/Debian-9.4; Sun, 27 Jan 2013 00:31:43 -0600; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
ehlo gmail.com
250-library.net.np Hello localhost [127.0.0.1], pleased to meet you
250 ENHANCEDSTATUSCODES
mail [hidden email]
451 4.3.0 Temporary system failure. Please try again later.

However, I am able to send email from my local machine by editing mynetworks configuration as mynetworks = 127.0.0.0/8, 192.168.0.0/24.

Any help would be really appreciated.

Thank you.

Dibyendra


Dibyendra Hyoju


On Fri, Jan 25, 2013 at 6:00 PM, Wietse Venema <[hidden email]> wrote:
Dibyendra Hyoju:
> I have installed postfix in my local machine and it's working. In the
> configuration I added following line:
> mynetworks = 127.0.0.0/8, 192.168.0.0/24
>
> However, in the rackspace having IP: 50.57.179.51, I could not get postfix
> to work. I am not sure what configuration is required in the main.cf file.
> Please provide your suggestion, what configuration in main.cf I have to
> make in order to have a working postfix?

You don't show the error message, so I won't speculate other than
that you need to update the old network adress and hostname
information.

For more details:

http://www.postfix.org/BASIC_CONFIGURATION_README.html

        Wietse

Reply | Threaded
Open this post in threaded view
|

Re: your mail

Will
On 01/27/2013 12:41 AM, Dibyendra Hyoju wrote:
> 220 library.net.np <http://library.net.np> ESMTP Sendmail
> 8.14.3/8.14.3/Debian-9.4; Sun, 27 Jan 2013 00:31:43 -0600; (No UCE/UBE)
> logging access from: localhost(OK)-localhost [127.0.0.1]

This seems to indicate that you are communicating with a Sendmail
server, not a Postfix server...

Reply | Threaded
Open this post in threaded view
|

Re: your mail

Dibyendra Hyoju
Thanks Will for your response. Yes, I restarted the remote machine and postfix is working now. However, I am not getting email. Is this because of configuration?

I configured the file as follows for the IP: 50.57.179.51. Please suggest if the following configuration is incorrect.

#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks = 127.0.0.0/8, 50.57.179.0/24

Any help would be appreciated.

Thanks!

Dibyendra Hyoju


On Sun, Jan 27, 2013 at 1:08 PM, Will <[hidden email]> wrote:
On 01/27/2013 12:41 AM, Dibyendra Hyoju wrote:
220 library.net.np <http://library.net.np> ESMTP Sendmail

8.14.3/8.14.3/Debian-9.4; Sun, 27 Jan 2013 00:31:43 -0600; (No UCE/UBE)
logging access from: localhost(OK)-localhost [127.0.0.1]

This seems to indicate that you are communicating with a Sendmail server, not a Postfix server...


Reply | Threaded
Open this post in threaded view
|

Re: your mail

James Griffin
In reply to this post by Will
* Will <[hidden email]> [2013-01-27 01:23:31 -0600]:

> On 01/27/2013 12:41 AM, Dibyendra Hyoju wrote:
> >220 library.net.np <http://library.net.np> ESMTP Sendmail
> >8.14.3/8.14.3/Debian-9.4; Sun, 27 Jan 2013 00:31:43 -0600; (No UCE/UBE)
> >logging access from: localhost(OK)-localhost [127.0.0.1]
>
> This seems to indicate that you are communicating with a Sendmail
> server, not a Postfix server...
 
 As pointed out by Will, the program listening on port 25 for smtpd
 connections is Sendmail version 8.14. This is, I imagine, the
 default MTA installed on a Debian system which from the output of
 your telnet session indicates you're using.

 When you installed Postfix was it from the Debian apt repositories?
 It should have made the necessary changes to you system to make
 Postfix the local MTA; for example, on some systems, like OpenBSD
 which I use, Sendmail is disabled by editing the file /etc/mailer.conf
 which points programs to the postfix binaries had that been the
 MTA I wanted to install. Also, Sendmail is disabled by adding
 sendmail=NO in /etc/rc.conf.local and adding a similar line for
 postfix but setting "YES" so it's the postfix binaries that are
 started at system boot time. So the point here being, that you
 need to disable Sendmail and enable Postfix.

 I don't use Linux, and never have, so I'm not sure on the method
 Debian uses to change the MTA. Check the Debian documentation and
 mailing list archives to see how to achieve that.

 Also, the main.cf snippets you provided showing sasl configuration
 are for smtp, i.e. outgoing - perhaps you meant to set up sasl
 auth settings for incoming, i.e. smtpd

 The best thing do now is to check the Debian docs to find out how
 to change your MTA to Postfix and disable Sendmail. Then  double
 check if it's incoming or outgoing sasl auth you're trying to
 achieve and post your postfix configuration to this list using the
 output of the postconf -n command and explain in more detail what
 it is you're having difficulty with.

--
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38
Reply | Threaded
Open this post in threaded view
|

Re: your mail

Geoff Shang
On Sun, 27 Jan 2013, James Griffin wrote:

> As pointed out by Will, the program listening on port 25 for smtpd
> connections is Sendmail version 8.14. This is, I imagine, the
> default MTA installed on a Debian system which from the output of
> your telnet session indicates you're using.

FWIW, Debian's default MTA is Exim.

Geoff.

Reply | Threaded
Open this post in threaded view
|

Re: your mail

Dibyendra Hyoju
In reply to this post by James Griffin
Hi James,

Thanks for your response.

On Sun, Jan 27, 2013 at 1:41 PM, James Griffin <[hidden email]> wrote:
* Will <[hidden email]> [2013-01-27 01:23:31 -0600]:

> On 01/27/2013 12:41 AM, Dibyendra Hyoju wrote:
> >220 library.net.np <http://library.net.np> ESMTP Sendmail
> >8.14.3/8.14.3/Debian-9.4; Sun, 27 Jan 2013 00:31:43 -0600; (No UCE/UBE)
> >logging access from: localhost(OK)-localhost [127.0.0.1]
>
> This seems to indicate that you are communicating with a Sendmail
> server, not a Postfix server...

I have uninstalled sendmail from the system.
root@library:/home/madan# dpkg -l | grep sendmail
root@library:/home/madan#
 
Postfix seems to be working but it's not sending email, maybe because of the configurations?

root@library:/home/madan# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 library.net.np ESMTP Postfix (Debian/GNU)
mail [hidden email]
250 2.1.0 Ok
rcpt [hidden email]
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:tst
testing from shibb
.
250 2.0.0 Ok: queued as AFD841C927
quit
221 2.0.0 Bye
Connection closed by foreign host.


 As pointed out by Will, the program listening on port 25 for smtpd
 connections is Sendmail version 8.14. This is, I imagine, the
 default MTA installed on a Debian system which from the output of
 your telnet session indicates you're using.

 When you installed Postfix was it from the Debian apt repositories?

Yes, i did from Debian apt repositories.

 It should have made the necessary changes to you system to make
 Postfix the local MTA; for example, on some systems, like OpenBSD
 which I use, Sendmail is disabled by editing the file /etc/mailer.conf
 which points programs to the postfix binaries had that been the
 MTA I wanted to install. Also, Sendmail is disabled by adding
 sendmail=NO in /etc/rc.conf.local and adding a similar line for
 postfix but setting "YES" so it's the postfix binaries that are
 started at system boot time. So the point here being, that you
 need to disable Sendmail and enable Postfix.

I did dpkg -l | grep exim but no result, that means exim is not installed as well.  The configuration mynetworks = 127.0.0.0/8, 192.168.0.0/24 in main.cf works in my local machine. What would be the configuration for the IP: 50.57.179.51?

Thanks,
Dibyendra

 I don't use Linux, and never have, so I'm not sure on the method
 Debian uses to change the MTA. Check the Debian documentation and
 mailing list archives to see how to achieve that.

 Also, the main.cf snippets you provided showing sasl configuration
 are for smtp, i.e. outgoing - perhaps you meant to set up sasl
 auth settings for incoming, i.e. smtpd

 The best thing do now is to check the Debian docs to find out how
 to change your MTA to Postfix and disable Sendmail. Then  double
 check if it's incoming or outgoing sasl auth you're trying to
 achieve and post your postfix configuration to this list using the
 output of the postconf -n command and explain in more detail what
 it is you're having difficulty with.

--
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38

Reply | Threaded
Open this post in threaded view
|

Re: your mail

Stan Hoeppner
On 1/27/2013 4:21 AM, Dibyendra Hyoju wrote:

> Postfix seems to be working but it's not sending email, maybe because of
> the configurations?
>
> root@library:/home/madan# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 library.net.np ESMTP Postfix (Debian/GNU)
> mail from:[hidden email]
> 250 2.1.0 Ok
> rcpt to:[hidden email]
> 250 2.1.5 Ok
> data
> 354 End data with <CR><LF>.<CR><LF>
> subject:tst
> testing from shibb
> .
> 250 2.0.0 Ok: queued as AFD841C927
> quit
> 221 2.0.0 Bye
> Connection closed by foreign host.

Postfix queued the message.  Given the sender and recipient addresses
you used, it would appear you might be an open relay, which you
obviously don't want to be.  Check your logs to see if Postfix attempted
delivery of this msg to gmail.com.  And fix your configuration so
Postfix won't relay mail to arbitrary domains.

--
Stan


Reply | Threaded
Open this post in threaded view
|

Re: your mail

Dibyendra Hyoju
Hi Stan,

I checked the log and I found out that the email was not sent because of authentication issues. But, I checked the /etc/postfix/sasl_passwd and the username and password is correct. I copied the same info into my local machine and it's working fine. The log contains following information:

Jan 28 03:24:35 library postfix/qmgr[6359]: D98DA1C940: from=<[hidden email]>, size=356, nrcpt=1 (queue active)
Jan 28 03:24:36 library postfix/smtp[6361]: D98DA1C940: SASL authentication failed; server smtp.gmail.com[173.194.64.108] said: 535-5.7.1 Please log in with your web browser and then try again. Learn more at?535 5.7.1 https://support.google.com/mail/bin/answer.py?answer=78754 7sm7386969obu.4 - gsmtp
Jan 28 03:24:37 library postfix/smtp[6361]: D98DA1C940: to=<[hidden email]>, relay=smtp.gmail.com[173.194.64.109]:587, delay=6464, delays=6462/0.08/1.1/0, dsn=4.7.1, status=deferred (SASL authentication failed; server smtp.gmail.com[173.194.64.109] said: 535-5.7.1 Please log in with your web browser and then try again. Learn more at?535 5.7.1 https://support.google.com/mail/bin/answer.py?answer=78754 ow7sm5796998obc.20 - gsmtp)

Any suggestions will be appreciated. Thank you.


Dibyendra Hyoju


On Sun, Jan 27, 2013 at 4:35 PM, Stan Hoeppner <[hidden email]> wrote:
On 1/27/2013 4:21 AM, Dibyendra Hyoju wrote:

> Postfix seems to be working but it's not sending email, maybe because of
> the configurations?
>
> root@library:/home/madan# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 library.net.np ESMTP Postfix (Debian/GNU)
> mail [hidden email]
> 250 2.1.0 Ok
> rcpt [hidden email]
> 250 2.1.5 Ok
> data
> 354 End data with <CR><LF>.<CR><LF>
> subject:tst
> testing from shibb
> .
> 250 2.0.0 Ok: queued as AFD841C927
> quit
> 221 2.0.0 Bye
> Connection closed by foreign host.

Postfix queued the message.  Given the sender and recipient addresses
you used, it would appear you might be an open relay, which you
obviously don't want to be.  Check your logs to see if Postfix attempted
delivery of this msg to gmail.com.  And fix your configuration so
Postfix won't relay mail to arbitrary domains.

--
Stan



Reply | Threaded
Open this post in threaded view
|

Re: your mail

Stan Hoeppner
On 1/28/2013 3:30 AM, Dibyendra Hyoju wrote:

> Hi Stan,
>
> I checked the log and I found out that the email was not sent because of
> authentication issues. But, I checked the /etc/postfix/sasl_passwd and the
> username and password is correct. I copied the same info into my local
> machine and it's working fine. The log contains following information:
>
> Jan 28 03:24:35 library postfix/qmgr[6359]: D98DA1C940: from=<
> [hidden email]>, size=356, nrcpt=1 (queue active)
> Jan 28 03:24:36 library postfix/smtp[6361]: D98DA1C940: SASL authentication
> failed; server smtp.gmail.com[173.194.64.108] said: 535-5.7.1 Please log in
> with your web browser and then try again. Learn more at?535 5.7.1
> https://support.google.com/mail/bin/answer.py?answer=78754 7sm7386969obu.4
> - gsmtp
> Jan 28 03:24:37 library postfix/smtp[6361]: D98DA1C940: to=<
> [hidden email]>, relay=smtp.gmail.com[173.194.64.109]:587, delay=6464,
> delays=6462/0.08/1.1/0, dsn=4.7.1, status=deferred (SASL authentication
> failed; server smtp.gmail.com[173.194.64.109] said: 535-5.7.1 Please log in
> with your web browser and then try again. Learn more at?535 5.7.1
> https://support.google.com/mail/bin/answer.py?answer=78754ow7sm5796998obc.20
> - gsmtp)
>
> Any suggestions will be appreciated. Thank you.

Why are you attempting to authenticate with Google?  Are you trying to
have Google deliver all of your outbound mail?  I.e. you are using
Google as your ISP WRT mail delivery?  By default Postfix servers
deliver all mail directly to the destination domain MX.

--
Stan


>
> Dibyendra Hyoju
>
>
> On Sun, Jan 27, 2013 at 4:35 PM, Stan Hoeppner <[hidden email]>wrote:
>
>> On 1/27/2013 4:21 AM, Dibyendra Hyoju wrote:
>>
>>> Postfix seems to be working but it's not sending email, maybe because of
>>> the configurations?
>>>
>>> root@library:/home/madan# telnet localhost 25
>>> Trying 127.0.0.1...
>>> Connected to localhost.
>>> Escape character is '^]'.
>>> 220 library.net.np ESMTP Postfix (Debian/GNU)
>>> mail from:[hidden email]
>>> 250 2.1.0 Ok
>>> rcpt to:[hidden email]
>>> 250 2.1.5 Ok
>>> data
>>> 354 End data with <CR><LF>.<CR><LF>
>>> subject:tst
>>> testing from shibb
>>> .
>>> 250 2.0.0 Ok: queued as AFD841C927
>>> quit
>>> 221 2.0.0 Bye
>>> Connection closed by foreign host.
>>
>> Postfix queued the message.  Given the sender and recipient addresses
>> you used, it would appear you might be an open relay, which you
>> obviously don't want to be.  Check your logs to see if Postfix attempted
>> delivery of this msg to gmail.com.  And fix your configuration so
>> Postfix won't relay mail to arbitrary domains.