LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2010, 02:54 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Debian: configuring postfix to send e-mails


Hi,
I'm trying to configure postfix to send e-mails but it is not receiving requests from networks different from its localnet (192.168.1.0/24).

Iptables is like this:
Code:
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  10.0.0.0/8           anywhere
ACCEPT     all  --  localnet/24          anywhere
ACCEPT     udp  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
A part of main.cf is like this:
Code:
biff = no
append_dot_mydomain = no
delay_warning_time = 4h

myhostname = host.domain.com (changed the real value here)
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydomain = testing.com (changed the real value here)

mydestination = $myhostname, localhost.$mydomain, $mydomain

mynetworks = 127.0.0.0/8, 10.0.0.0/8, 192.168.1.0/24
virtual_alias_maps = hash:/etc/mail/virtual
relay_domains = $mydestination $virtual_alias_domains
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
The computer that I'm trying to send messages from has 10.101.14.35 for the IP address and nmap outputs this:
Code:
Host is up (0.00s latency).
PORT   STATE    SERVICE
25/tcp filtered smtp
The router doesn't execute any kind of filtering.

regards,
 
Old 10-18-2010, 11:07 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Is this solved ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix allowing mails to send from telnet rakmvk Linux - Server 2 11-10-2008 08:18 AM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM
can send mails, can't recive them (mailscanner+postfix+dovecot) chuck_cts Linux - Networking 2 04-05-2008 08:10 AM
My Postfix mailserver can't send out mails directly! gubak Linux - Networking 4 03-28-2006 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration