Sponsored Content
Full Discussion: ACL for postfix or sendmail
Top Forums UNIX for Dummies Questions & Answers ACL for postfix or sendmail Post 302769947 by safsound on Thursday 14th of February 2013 03:05:45 AM
Old 02-14-2013
ACL for postfix or sendmail

Hello,

i want to know how to configure a MTA to relay somes domain by IP source, example :

toto.com and titi.com can relay with ip sender 10.2.2.0/24 only
lulu.com can relay with ip sender 192.168.0.4/32 only
all domain can relay with ip sender 172.0.0.5/32 only

It's possible with policy server (postfix) but i dont know how to write policy about it Smilie
Or if it's possible with sendmail ?

i know how to allow relay by IP or by From: with /etc/mail/access but not twice at same time

Thanks

Safsound

Last edited by safsound; 02-14-2013 at 08:13 AM..
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Postfix Problem under mailx/sendmail command

Update: Problem solved with this command: /opt/soc/bin/postfix-setup ================================ Hi, I am trying the following mailx command: sadm@edwardwi-z:/etc$ mailx ewijaya@gmail.com Subject: test foo . . EOT But it gives the following error ... (0 Replies)
Discussion started by: monkfan
0 Replies

2. UNIX for Dummies Questions & Answers

postfix queue filling up (from sendmail?)

What is filling up my postfix queue (/var/spool/postfix/deferred/)? I had a perl script running via crontab to monitor my IP connection and send me a mail via sendmail. Now I have a huge queue of emails I keep getting. I've removed the crontab and the script. If I clear out... (0 Replies)
Discussion started by: kumakuma
0 Replies

3. OS X (Apple)

postfix queue filling up (from sendmail?)

What is filling up my postfix queue (/var/spool/postfix/deferred/)? I had a perl script running via crontab to monitor my IP connection and send me a mail via sendmail. Now I have a huge queue of emails I keep getting. I've removed the crontab and the script. If I clear out... (1 Reply)
Discussion started by: kumakuma
1 Replies

4. UNIX for Dummies Questions & Answers

Mail tranmission issue: Postfix/Sendmail

Hi, I have email that is being routed from one server to another server it seems. The sending server has postfix running and the receiving server has sendmail running. The sendmail status is receiving connection. The sending server cannot seem to reach the receiving server. Error logs state... (0 Replies)
Discussion started by: mojoman
0 Replies

5. Solaris

Replace sendmail with Postfix

Hi, I am assigned to replace sendmail with Postfix in solaris 10. Can anyone please tell what are the steps should be taken like files to backup and what are the configurations should be taken care and so on??????? Appreciate any help.... (0 Replies)
Discussion started by: bpsunadm
0 Replies

6. UNIX for Dummies Questions & Answers

French characters in postfix/sendmail

Hello again, How can I send emails via postfix with special characters like "à" via postfix. When I'm paste-ing the special character inside a editor (nano) it shows like this --> � ... any tips? (1 Reply)
Discussion started by: galford
1 Replies
6to4relay(1M)						  System Administration Commands					     6to4relay(1M)

NAME
6to4relay - administer configuration for 6to4 relay router communication SYNOPSIS
/usr/sbin/6to4relay /usr/sbin/6to4relay [-e] [-a addr] /usr/sbin/6to4relay [-d] /usr/sbin/6to4relay [-h] DESCRIPTION
The 6to4relay command is used to configure 6to4 relay router communication. Relay router communication support is enabled by setting the value of a variable that stores an IPv4 address within the tun module. This variable is global to all tunnels and defines the policy for communication with relay routers. By default, the address is set to INADDR_ANY (0.0.0.0), and the kernel interprets the value to indicate that support for relay router communication is disabled. Otherwise, support is enabled, and the specified address is used as the IPv4 des- tination address when packets destined for native IPv6 (non-6to4) hosts are sent through the 6to4 tunnel interface. The 6to4relay command uses a project private ioctl to set the variable. 6to4relay used without any options outputs the current, in-kernel, configuration status. Use the -a option to send packets to a specific relay router's unicast address instead of the default anycast address. The address specified with the -a option does not specify the policy for receiving traffic from relay routers. The source relay router on a received packet is non-deterministic, since a different relay router may be chosen for each sending native IPv6 end-point. Configuration changes made by using the 6to4relay are not persistent across reboot. The changes will persist in the kernel only until you take the tunnel down OPTIONS
The 6to4relay command supports the following options: -a addr Use the specified address, addr. -e Enable support for relay router. Use -a addr if it is specified. Otherwise, use the default anycast address, 192.88.99.1. -d Disable support for the relay router. -h Help OPERANDS
The following operands are supported: addr A specific relay router's unicast address. addr must be specified as a dotted decimal representation of an IPv4 address. Other- wise, an error will occur, and the command will fail. EXAMPLES
Example 1: Printing the In-Kernel Configuration Status Use /usr/sbin/6to4relay without any options to print the in-kernel configuration status. example# /usr/sbin/6to4relay If 6to4 relay router communication is disabled, the administrator will see the following message: 6to4relay: 6to4 Relay Router communication support is disabled. If 6to4 router communication is enabled, the user will see this message: 6to4relay: 6to4 Relay Router communication support is enabled. IPv4 destination address of Relay Router = 192.88.99.1 EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/usr/sbin/6to4relay The default installation root ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ifconfig(1M), attributes(5) Huitema, C. RFC 3068, An Anycast Prefix for 6to4 Relay Routers. Network Working Group. June, 2001. Carpenter, B. and Moore, K. RFC 3056, Connection of IPv6 Domains via IPv4 Clouds. Network Working Group. February, 2001. DIAGNOSTICS
The 6to4relay reports the following messages: 6to4relay: input (0.0.0.0) is not a valid IPv4 unicast address Example: example# 6to4relay -e -a 0.0.0.0 Description: The address specified with the -a option must be a valid unicast address. 6to4relay: option requires an argument -a usage: 6to4relay 6to4relay -e [-a <addr>] 6to4relay -d 6to4relay -h Example: example# 6to4relay -e -a Description: The -a option requires an argument. usage: 6to4relay 6to4relay -e [-a <addr>] 6to4relay -d 6to4relay -h Example: example# 6to4relay -e -d Description: The options specified are not permitted. A usage message is output to the screen. usage: 6to4relay 6to4relay -e [-a <addr>] 6to4relay -d 6to4relay -h Example: example# 6to4relay -a 1.2.3.4 Description: The -e option is required in conjunction with the -a option. A usage message is output to the screen. 6to4relay: ioctl (I_STR) : Invalid argument Example: example# 6to4relay -e -a 239.255.255.255 Description: The address specified with the -a option must not be a class d addr. SunOS 5.10 19 Nov 2002 6to4relay(1M)
All times are GMT -4. The time now is 08:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy